bug in g77

Toon Moene toon@moene.indiv.nluug.nl
Wed Feb 14 11:26:00 GMT 2001


Steven Castillo wrote:

> I am trying to run some fortran codes requiring very large arrays (~ 1
> gbyte).  When trying to compile a fortran code with a declared single
> precision floating point array having a length of more than 134217727
> using the command:

Yes, this is a well-known limitation of g77:  It calculates all sizes of
objects in bits, so on 32-bit targets, the size of a REAL array is
limited to 2**32/32 - 1= 2**27 - 1 = 134217728 - 1 = 134217727 elements.

Your choices:

1. Help us fix this.

2. Switch to a 64-bit target, like Alpha.

[ Hint:  The latter may be cheaper ]

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)



More information about the Gcc-bugs mailing list