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]

Re: bug in g77


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)


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