This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g77 size of variable too large
Hello,
On Fri, 2004-01-09 at 21:27, Toon Moene wrote:
> > parameter(it=478,jt=303,kt=215,nphit=8,nphito=8)
> ...
> > 1/vectr/phi(it,jt,kt,nphit),phio(it,jt,kt,nphito),prt(nphit),
> > 2 resor(nphit),reref(nphit),urf(nphit),ustarv(it,jt,kt),
> > 3 phic(it,jt,kt,6),cs(it,jt,kt),tracel(it,jt,kt),
> > 4 csk(it,jt,kt),
> > 6 conve(it,jt,kt),convn(it,jt,kt),convh(it,jt,kt),
> > 7 smp(it,jt,kt),dtfals(nphit)
>
> 478 * 303 * 215 * 8 * 4 bytes = 996457920 bytes ~ 1 Gbyte.
>
> You have two such arrays (phi, phio) and phic, which is only slightly
> smaller.
>
> So ~ 3 Gbyte of arrays on a 32-bit machine. That's not going to work.
>
Thanks!
> My advise: By an AMD64 or a Apple G5.
Maybe an AMD64
Greetings
Fabian