This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
array dimensions
- To: gcc-bugs at gcc dot gnu dot org
- Subject: array dimensions
- From: onno at hoitinga dot xs4all dot nl
- Date: Mon, 8 Oct 2001 20:13:20 +0200
Dear M,
I include one program and an output file of a testproblem I have. I need to
declare an array with a dimension of 400 Mword. Gnu fortran will not allow
me to do so. Very strange because I want to adres my memory for a FEM
calculation (at this moment 1Gb core and 1Gb swap space, in the future
expanding to 4 Gb core and extra swap).
Onno Hoitinga
Onno@Hoitinga.xs4all.nl
f77 pipo.f -o pipo
pipo.f: In program `MAIN__':
pipo.f:1:
integer ir(400000000), i
^
Array `ir' at (^) is too large to handle
make: *** [pipo] Error 1
integer ir(400000000), i
do i = 1, 100000000
ir(i) = i
enddo
print *, ir(9999)
end