comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: Memory limits in Ada where Fortran has none
Date: Sun, 06 Mar 2005 10:33:09 +0100
Date: 2005-03-06T10:33:09+01:00	[thread overview]
Message-ID: <1791776.Xn1vn8C3jC@linux1.krischik.com> (raw)
In-Reply-To: 1110070479.250902.220540@l41g2000cwc.googlegroups.com

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




  parent reply	other threads:[~2005-03-06  9:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06  0:54 Memory limits in Ada where Fortran has none braver
2005-03-06  1:09 ` Jeff C
2005-03-06  6:18   ` braver
2005-03-06  9:26     ` Martin Krischik
2005-03-06 16:14       ` braver
2005-03-06 16:28         ` Jeff C
2005-03-06 23:09         ` Craig Carey
2005-03-07  0:36           ` braver
2005-03-07  5:55           ` braver
2005-03-08  5:35             ` braver
2005-03-06 14:09     ` Stephen Leake
2005-03-06  9:33 ` Martin Krischik [this message]
2005-03-06 22:13 ` Gerald
2005-03-06 23:01 ` Dr. Adrian Wrigley
2005-03-07  0:31   ` braver
2005-03-07 12:47     ` Dr. Adrian Wrigley
2005-03-07  9:41   ` Martin Krischik
2005-03-07 11:59     ` Dr. Adrian Wrigley
2005-03-07 12:26       ` Martin Krischik
2005-03-07  0:05 ` Robert A Duff
2005-03-07 18:04   ` braver
2005-03-16 19:41     ` Robert A Duff
2005-03-17 18:49       ` Martin Krischik
2005-03-08 11:24   ` Dr. Adrian Wrigley
2005-03-09  3:39     ` Craig Carey
2005-03-16 17:39       ` Craig Carey
2005-03-16 19:51     ` Robert A Duff
2005-03-16 23:47       ` Dr. Adrian Wrigley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox