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



ME wrote:

How much virtual memory does your computer have?

Does pragma Storage_ size affect this and if so where would you place it
in
a procedure?

No, the array index used affect the maximum size. I suggest you read:
so then
Type My_Array is array (1..Long_Long_Integer'last) of  record...
is fine?


No, it means that your computer is running out of memory before GNAT does.
Tell me what computer/os you got and I tell you how large your array can
be.

On most 32 bit OS it will be 2**31 byte.
A few selected 32 bit OS it will be 2*32 byte.
On a (propper) 64 bit OS your swap file will fill your hardrive first.

Martin

--
mailto://krischik@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.



Relevant Pages

  • Re: Largest size array in Gnat 2005 for the PC?
    ... the array index used affect the maximum size. ... Type My_Array is array of record... ... On a 64 bit OS your swap file will fill your hardrive first. ... Ada programming at: http://ada.krischik.com ...
    (comp.lang.ada)
  • Re: Largest size array in Gnat 2005 for the PC?
    ... How much virtual memory does your computer have? ... the array index used affect the maximum size. ... arrays size whatsoever. ... Ada programming at: http://ada.krischik.com ...
    (comp.lang.ada)
  • Re: Largest size array in Gnat 2005 for the PC?
    ... ME schrieb: ... How much virtual memory does your computer have? ... the array index used affect the maximum size. ... Ada programming at: http://ada.krischik.com ...
    (comp.lang.ada)