comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Size of Vector limited to 1024 MB of Heap Size
Date: Tue, 24 Jun 2008 08:03:41 -0700 (PDT)
Date: 2008-06-24T08:03:41-07:00	[thread overview]
Message-ID: <18edddf0-8a96-466b-bf81-ec30b7da0ed6@w8g2000prd.googlegroups.com> (raw)
In-Reply-To: g3qc68$5a5$1@aioe.org

On Jun 24, 1:44 am, Dennis Hoppe <dennis.ho...@hoppinet.de> wrote:
> Hi,
>
> my machine has 4 GB of RAM and I am wondering, why I can't use
> at least 2 or 3 GBytes to run an Ada program.

Well, if you were using Windows, I'd guess this is because Windows
reserves about 3.98 GB of your RAM for itself.  But I notice that you
said further on down that you were using Linux, so the heck with that
answer........

>  It seems, that my
> Ada Compiler (Gnat 4.4.0) limit the memory to 2 GB per default.
> Is it possible to allocate more than 2 GB?

I don't know GNAT intimately, and I don't work on it.  But 2 GB =
2**31 bytes, and the largest possible value of a signed 32-bit integer
is 2**31-1.  So if their runtime is using 32-bit integers to hold
values like that, there may be no way to deal with larger memory
amounts without a rewrite of the runtime.

                               -- Adam



  reply	other threads:[~2008-06-24 15:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24  8:44 Size of Vector limited to 1024 MB of Heap Size Dennis Hoppe
2008-06-24 15:03 ` Adam Beneschan [this message]
2008-06-24 17:32 ` Robert A Duff
2008-06-24 18:55 ` Peter Schildmann
2008-06-25 15:13   ` Dennis Hoppe
2008-06-25 17:26     ` (see below)
2008-06-25 21:09       ` Dennis Hoppe
2008-06-24 20:03 ` Gene
2008-06-24 20:38   ` Robert A Duff
2008-06-24 22:53 ` anon
2008-06-24 23:36   ` Extra footnote: " anon
2008-06-25  0:11     ` tmoran
2008-06-25  2:49       ` anon
2008-06-25  8:04         ` christoph.grein
2008-06-25 10:39 ` Peter Schildmann
2008-06-25 15:29   ` Dennis Hoppe
replies disabled

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