Array restriction in g77
Olaf Cirpka
ocirpka@hydro2.Stanford.EDU
Tue Nov 2 14:19:00 GMT 1999
I have installed the latest release of g77 on a pentium III running under
Debian Linux (kernel 2.0.38).
g77 version 2.95.2 19991024 (from FSF-g77 version 0.5.25 19991024)
i686-pc-linux-gnu
The computer has 1 GB RAM, and the system recognizes the memory
(/proc/meminfo contains "MemTotal: 1032628 kB"). However, when
I define arrays that use more than 512 MB RAM, I receive the error message
"array too large to handle".
Example: test.f
PROGRAM HALLO
DOUBLE PRECISION A(67108864)
WRITE(*,*) "HALLO"
END
End example
output for g77 test.f:
DOUBLE PRECISION A(67108864)
^
Array `a' at (^) is too large to handle
End output
With A(67108863) everything is fine.
--------------------------------------------------------------
Dr. Olaf A. Cirpka
Stanford University private address:
Dept. of Civil and Environ. Eng. Kingscote Gardens
Environ. Fluid Mechanics & Hydrology 419 Lagunita Drive #41
Stanford, CA 94305-4020 Stanford, CA 94305-8206
USA USA
Tel.: +1 (650) 723 1825 Tel.: +1 (650) 566 8954
Fax : +1 (650) 725 9720
http://efml.stanford.edu/scmg/oac/oac.html
--------------------------------------------------------------
More information about the Gcc-bugs
mailing list