This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g77: problems with allocating more than 64M doubles or .5 G bytesto an array
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: g77: problems with allocating more than 64M doubles or .5 G bytesto an array
- From: Dr M Braun <braunm at kiaat dot unisa dot ac dot za>
- Date: Mon, 30 Aug 1999 13:58:39 +0200 (USAST)
Dear Maintainer of egcs-g77
I encounter the following problem:
when using g77 under linux to compile the following simple code
======= cut here =========
real*8 b(768,1024*128)
integer i,j,k
do i=1,768
do j=1,1024*128
b(i,j)=i+j/5000d0
enddo
enddo
C
end
== cut here ==
I get the following error message at compile-time
eatmem_huge.f: In program `MAIN__':
eatmem_huge.f:1:
real*8 b(768,1024*128)
^
Array `b' at (^) is too large to handle
this is kind of restrictive if you need to work with very large matrices
Under g++ this problem is not existent; you can allocate the sum of
free RAM and swap before he complains at run time!
It is
your sincerely
Dr Moritz Braun Tel.: 27-12-4298006/8714/8027
Physics Department Fax.: 27-12-4293643
University of South Africa (UNISA) braunm@kiaat.unisa.ac.za
P.O. Box 392 0003 Pretoria South Africa