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




"Martin Krischik" <krischik@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4726d889$1@xxxxxxxxxxxxxxx
ME schrieb:

What is the largest array (in storage units) that you can declare in Gnat
2005 for the PC?

How much virtual memory does your computer have?
I have ~1500Mb

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:

http://en.wikibooks.org/wiki/Ada_Programming/Types/array

and consider what would happen if "Index_Range" is of type
Long_Long_Integer and if you computer has enough memory to hold such a
beast.

Martin

PS: There is no "GNAT 2005" - There is

1) "GNAT GPL 2005" which is 3 releases old - the current release is GNAT
GPL 2007-2
2) Ada 2005: which is a standard and as such puts no restriction or
arrays size whatsoever.

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


.



Relevant Pages