This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

array dimensions


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]