Assembler error - large data set.

Daniel Carrera dcarrera@gmail.com
Mon Dec 19 11:22:00 GMT 2011


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.



More information about the Fortran mailing list