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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f479f3331eef5353 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!postnews.google.com!w8g2000prd.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Size of Vector limited to 1024 MB of Heap Size Date: Tue, 24 Jun 2008 08:03:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <18edddf0-8a96-466b-bf81-ec30b7da0ed6@w8g2000prd.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214319822 1491 127.0.0.1 (24 Jun 2008 15:03:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Jun 2008 15:03:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w8g2000prd.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:838 Date: 2008-06-24T08:03:41-07:00 List-Id: On Jun 24, 1:44 am, Dennis Hoppe 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