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




"Martin Krischik" <krischik@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1948519.DJ9jiXYulm@xxxxxxxxxxxxxxxxxxxxxx
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.
Win XP SP2

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: Java Indexing- Historical question
    ... Because it's the right way to do array indexes if you only allow a single ... ambiguity in understanding what an array index means in an arbitrary ... Here the zero index makes sense. ... element and second elements of the array and their indices are 0 and ...
    (comp.lang.java.programmer)
  • Re: Object Hash vs. object Array preference
    ... * Both Hashtable and Array ... * with "Invalid array index value" message as any other language would ... * converts argument from number to string and adds new key to the ... * Also valuable cycles are being spent for all this marry-go-round. ...
    (comp.lang.javascript)
  • Re: Object Hash vs. object Array preference
    ... CDATA is a type in HTML documents. ... Objects accept *strings* as property names. ... > Array index is unsigned 32 bit value which allows you to hold ... than the largest used array index). ...
    (comp.lang.javascript)
  • Re: Object Hash vs. object Array preference
    ... must be in the init() function and uncommented. ... * Both Hashtable and Array ... * with "Invalid array index value" message as any other language would ... * converts argument from number to string and adds new key to the ...
    (comp.lang.javascript)
  • Re: type of array index?
    ... This type is an obvious candidate for the array index type. ... applies only if you don't care about negative indexing. ... unsigned type is large enough for indexing of any array. ...
    (comp.lang.c)