From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a2aeab5a4f8df549 X-Google-Attributes: gid103376,public From: Reinert Korsnes Subject: Re: Large arrays in GNAT Date: 2000/07/16 Message-ID: <3972074D.8316D459@npolar.no>#1/1 X-Deja-AN: 647064992 Content-Transfer-Encoding: 7bit References: <3971DC1F.D415BFBE@npolar.no> <8ksv3n$aep$1@pyrite.mv.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news-abuse@online.no X-Trace: news1.online.no 963774289 130.67.172.243 (Sun, 16 Jul 2000 21:04:49 MET DST) Organization: Telenor Online Public Access MIME-Version: 1.0 NNTP-Posting-Date: Sun, 16 Jul 2000 21:04:49 MET DST Newsgroups: comp.lang.ada Date: 2000-07-16T00:00:00+00:00 List-Id: You fixed my problem. Thanks a lot.... reinert Jeff Creem wrote: > "Reinert Korsnes" 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