From: Reinert Korsnes <Reinert.Korsnes@npolar.no>
Subject: Re: Large arrays in GNAT
Date: 2000/07/16
Date: 2000-07-16T00:00:00+00:00 [thread overview]
Message-ID: <3972074D.8316D459@npolar.no> (raw)
In-Reply-To: 8ksv3n$aep$1@pyrite.mv.net
You fixed my problem. Thanks a lot....
reinert
Jeff Creem wrote:
> "Reinert Korsnes" <Reinert.Korsnes@npolar.no> wrote in message
> news:3971DC1F.D415BFBE@npolar.no...
> > Hi,
> >
> > I cannot declare an array of Float larger than 2.5 mill elements
> > using my Ada95 gnat compiler (gnat-3.12p-12) on my linux box.
> >
> > For example:
> >
> > A : array (Integer range 1 .. 2_500_000) of Float;
>
> declare the array in a package (spec or body it does not matter) or create
> an access type and do a new.
>
> If you declare an array as a local variable or (really the same thing) in
> the
> mainline procedure it gets created on the stack..
--
Norwegian Polar Institute
Polar Environment Center
N-9296 Tromso
Norway
Fax: +47 77750501
http://geophys.npolar.no/~reinert/personal.html
next prev parent reply other threads:[~2000-07-16 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-16 0:00 Large arrays in GNAT Reinert Korsnes
2000-07-16 0:00 ` Jeff Creem
2000-07-16 0:00 ` Reinert Korsnes [this message]
2000-07-16 0:00 ` gdemont
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox