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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,49eb370bfd3baa90 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-Id: <1791776.Xn1vn8C3jC@linux1.krischik.com> From: Martin Krischik Subject: Re: Memory limits in Ada where Fortran has none Newsgroups: comp.lang.ada Reply-To: martin@krischik.com Date: Sun, 06 Mar 2005 10:33:09 +0100 References: <1110070479.250902.220540@l41g2000cwc.googlegroups.com> Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com NNTP-Posting-Host: 83.169.175.19 (83.169.175.19) NNTP-Posting-Date: Sun, 06 Mar 2005 11:00:08 +0100 X-Trace: ef82a422ad4a8f60c0ab620799 Xref: g2news1.google.com comp.lang.ada:8734 Date: 2005-03-06T10:33:09+01:00 List-Id: braver wrote: > Overall, Ada being the language for large systems, I found it > surprising that Fortran can allocate enough arrays to fill in my > memory, or even take up virtual memory, while Ada raises > STORAGE_ERRORs! I'd like to simply use (1), as in Fortran, and be done > with it... It is a problem of the GNAT compiler. GNAT uses 32 bit Integer for the 'Size attribute. And 'Size is the size in bit - not byte. A few years ago that was fine but now you a the 2nd person in half a year to hit that limit. Also, GNAT unlike other Ada compiler won't use heap memory unless beeing told to (via the keyword new) so the array is either static or stack - both might be limited by the operating system. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com