public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Arraysizes in g77
@ 2002-01-02 11:17 Alex Yu
  2002-01-02 15:09 ` Toon Moene
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Yu @ 2002-01-02 11:17 UTC (permalink / raw)
  To: gcc-help List

Hello all,

I have a program which is mostly written in Fortran.  It seems like that
g77's array limit is 512MB.  How can I increase the limit?

Alex

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

* Re: Arraysizes in g77
  2002-01-02 11:17 Arraysizes in g77 Alex Yu
@ 2002-01-02 15:09 ` Toon Moene
  2002-01-04  8:46   ` Alex Yu
  0 siblings, 1 reply; 5+ messages in thread
From: Toon Moene @ 2002-01-02 15:09 UTC (permalink / raw)
  To: Alex Yu; +Cc: gcc-help List

Alex Yu wrote:

> I have a program which is mostly written in Fortran.  It seems like that
> g77's array limit is 512MB.  How can I increase the limit?

This limitation will be removed in gcc/g77-3.1 - see the news item in
the URL in my signature.

-- 
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] 5+ messages in thread

* RE: Arraysizes in g77
  2002-01-02 15:09 ` Toon Moene
@ 2002-01-04  8:46   ` Alex Yu
  2002-01-04  9:45     ` Toon Moene
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Yu @ 2002-01-04  8:46 UTC (permalink / raw)
  To: 'gcc-help List'

> This limitation will be removed in gcc/g77-3.1 - see the news item in
> the URL in my signature.

I compiled and installed 1/4/02 CVS.

I declaring 2 very large integer arrays: vst(271722256) and
wst(271722256) (1.87 Gb each).  I ran into a small problem by combining
them in a common statement:
	
	common /bigstuff/ vst,wst,marks,force2

The compiler complained that "bigstuff" was too big.  This concerns me,
since I'll be wanting to compile arrays of this size where vst and wst
are 64 bit floating point variables and for even larger sizes.

Toon, do you have any answer for this?

Thanks,
Alex

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

* Re: Arraysizes in g77
  2002-01-04  8:46   ` Alex Yu
@ 2002-01-04  9:45     ` Toon Moene
  2002-01-04 11:57       ` Alex Yu
  0 siblings, 1 reply; 5+ messages in thread
From: Toon Moene @ 2002-01-04  9:45 UTC (permalink / raw)
  To: Alex Yu; +Cc: 'gcc-help List'

Alex Yu wrote:

> > This limitation will be removed in gcc/g77-3.1 - see the news item in
> > the URL in my signature.
> 
> I compiled and installed 1/4/02 CVS.
> 
> I declaring 2 very large integer arrays: vst(271722256) and
> wst(271722256) (1.87 Gb each).  I ran into a small problem by combining
> them in a common statement:
> 
>         common /bigstuff/ vst,wst,marks,force2
> 
> The compiler complained that "bigstuff" was too big.

Note that I need the exact error message to make sense out of this (and
a complete compilable example, with the exact source that you fed to the
compiler).

I.e., something like:

      INTEGER*8 VST, WST
      DIMENSION VST(271722256)
      DIMENSION WST(271722256)
C   DECLARATION OF OTHER STUFF, LIKE MARKS AND FORCE2
      COMMON /BIGSTUFF/ VST,WST,MARKS,FORCE2
      END

Thanks in advance,

-- 
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] 5+ messages in thread

* RE: Arraysizes in g77
  2002-01-04  9:45     ` Toon Moene
@ 2002-01-04 11:57       ` Alex Yu
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Yu @ 2002-01-04 11:57 UTC (permalink / raw)
  To: 'Toon Moene'; +Cc: 'gcc-help List'

> Note that I need the exact error message to make sense out of 
> a complete compilable example, with the exact source that you 

      parameter (maxn=20000)
      parameter (mxbits=(maxn*(maxn+1)+29)/30)
      integer vst(maxn*maxn),wst(maxn*maxn)
      integer*2 marks(mxbits),force2(2*mxbits)
      common /bigstuff/ vst,wst,marks,force2
      end

# g77-3.1 -O3 -fno-automatic -ffixed-line-length-none -static -o test
test.f  
test.f:3: size of variable `bigstuff_' is too large

Alex

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

end of thread, other threads:[~2002-01-04 19:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-02 11:17 Arraysizes in g77 Alex Yu
2002-01-02 15:09 ` Toon Moene
2002-01-04  8:46   ` Alex Yu
2002-01-04  9:45     ` Toon Moene
2002-01-04 11:57       ` Alex Yu

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