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,6b3ebf057333800c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!v23g2000prn.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Largest size array in Gnat 2005 for the PC? Date: Tue, 30 Oct 2007 12:06:39 -0700 Organization: http://groups.google.com Message-ID: <1193771199.634647.228210@v23g2000prn.googlegroups.com> References: <13idb3jbm28kfbe@corp.supernews.com> <9QJVi.302202$ax1.32179@bgtnsc05-news.ops.worldnet.att.net> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1193771203 16077 127.0.0.1 (30 Oct 2007 19:06:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Oct 2007 19:06:43 +0000 (UTC) In-Reply-To: <9QJVi.302202$ax1.32179@bgtnsc05-news.ops.worldnet.att.net> 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) Complaints-To: groups-abuse@google.com Injection-Info: v23g2000prn.googlegroups.com; posting-host=66.126.103.122; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2649 Date: 2007-10-30T12:06:39-07:00 List-Id: On Oct 30, 10:27 am, a...@anon.org (anon) wrote: > Since your using 32-bit version of XP. then it is linmited to 32 bits. > > GNAT is ported to over 30 operating systems and CPUs. Here is a > subset of a few type and sizes > > if your CPU and operating system is limited to 32 bits then GNAT > defines: > > System.Memory_Size : constant := ( 2 ** 32 ) ; > > else using the ia64/Alpha/s390x/86-64 processors and a 64-bits > OS then GNAT set the size to: > > System.Memory_Size : constant := ( 2 ** 64 ) ; I should point out that you should *not* use System.Memory_Size for this purpose unless you're using GNAT and are absolutely certain your code will not be compiled with another compiler. The original definition of Memory_Size had to do with the amount of available memory, not the amount of memory that could be accessed with an address (whether the memory existed or not); starting with Ada 95, the AARM has said: It is unspecified whether this refers to the size of the address space, the amount of physical memory on the machine, or perhaps some other interpretation of "memory size." In any case, the value has to be given by a static expression, even though the amount of memory on many modern machines is a dynamic quantity in several ways. Thus, Memory_Size is not very useful. [13.7(33.a)] -- Adam