Re: Largest size array in Gnat 2005 for the PC?



On Oct 30, 10:27 am, a...@xxxxxxxx (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

.



Relevant Pages

  • Re: Swap space
    ... > twice the amount of RAM if you need to capture a dump for debugging. ... > If you won't ever be doing that, you may not need so much swap. ... least the size of physical memory. ...
    (freebsd-questions)
  • Re: My idea of fully-portable C code
    ... unused state in the middle of a list of values will "use the least ... amount of memory possible" only by luck, ... The only thing that counts is what the code does if used within the limits you actually specified, on a random host platform implementing standard C. ...
    (comp.arch.embedded)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (comp.theory)
  • Re: Lambda Calculus and Turing Equivalence
    ... memory of a TM exceeds the potential finite memory of a PC. ... principle compute problems that require greater storage than ... That is because the tape that Turing posited has no physical constraints. ... magically given an infinite amount of storage space." ...
    (sci.math)
  • Re: Problem - Solved - Re: Starting with Linux
    ... My laptop is a Pentium 133mz, with the 96mb RAM. ... With DMA off, you will notice some system degradation and with only ... > to 8Mb probably) further reducing the amount of system memory available. ...
    (alt.os.linux.suse)