public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Array is too large to handle
@ 2002-11-29  0:06 Nils Wagner
  2002-11-29 12:16 ` Toon Moene
  0 siblings, 1 reply; 2+ messages in thread
From: Nils Wagner @ 2002-11-29  0:06 UTC (permalink / raw)
  To: gcc-help

Dear all,

I wonder if there exits an upper limit for double precision arrays in
FORTRAN (g77).
Please can you inform me about possible reasons for this restriction
(hardware, memory, gcc version, ...)

Regards,

           Nils

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Array is too large to handle
  2002-11-29  0:06 Array is too large to handle Nils Wagner
@ 2002-11-29 12:16 ` Toon Moene
  0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2002-11-29 12:16 UTC (permalink / raw)
  To: Nils Wagner; +Cc: gcc-help

Nils Wagner wrote:

> I wonder if there exits an upper limit for double precision arrays in
> FORTRAN (g77).
> Please can you inform me about possible reasons for this restriction
> (hardware, memory, gcc version, ...)

On 32-bit targets, until GCC/g77 version 3.1, the limit was 2**32 bits, 
which is 2**26 DOUBLE PRECISION values, or around 65 million.

 From GCC/g77-3.1 onwards, the limit is 2**31 bytes, which means around 
262 million DOUBLE PRECISION values.  The latter limit is due to the 
fact that on 32-bit targets, signed integers used in offset calculations 
cannot be larger than 2**31-1.

Hope this helps,

-- 
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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-29 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-29  0:06 Array is too large to handle Nils Wagner
2002-11-29 12:16 ` Toon Moene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).