This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Assembler error - large data set.
- From: Daniel Carrera <dcarrera at gmail dot com>
- To: gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 19 Dec 2011 12:21:52 +0100
- Subject: Assembler error - large data set.
Hello,
I need to write a program that reads a very large data file and I am
getting a strange assembler error. It's clearly to do with the size of
my data. I have written a toy program that illustrates the error:
program test
use iso_fortran_env, only : real64
implicit none
integer, parameter :: nrows = 233280000
integer, parameter :: rp = real64
real(rp), dimension(nrows) :: longitude, latitude, height, area
area = 0
height = 0
latitude = 0
longitude = 0
end program
When I compile I get this:
gfortran -o test.o -c --std=f2008 -fimplicit-none -Wall -fbounds-check
test.f90
/tmp/ccKqApNC.s: Assembler messages:
/tmp/ccKqApNC.s:31: Error: value of 000000014db5b000 too large for field
of 4 bytes at 0000000000000061
Almost any change to the program will make the error go way. For
example, if I have fewer variables, or if I use "real" instead of
"real(rp)".
I don't know what to make of this and I'm hoping that someone can help
me out.
Cheers,
Daniel.
--
To all Pascal programmers: In honour of the 395th anniversary of
Blaise Pascal (today) all your programs will run at half speed.