Re: Largest size array in Gnat 2005 for the PC?
- From: Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 08:08:28 +0100
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?
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
.
- Follow-Ups:
- Re: Largest size array in Gnat 2005 for the PC?
- From: ME
- virtual memory, was Re: Largest size array in Gnat 2005 for the PC?
- From: tmoran
- Re: Largest size array in Gnat 2005 for the PC?
- From: ME
- Re: Largest size array in Gnat 2005 for the PC?
- From: Florian Weimer
- Re: Largest size array in Gnat 2005 for the PC?
- References:
- Prev by Date: Largest size array in Gnat 2005 for the PC?
- Next by Date: Re: Largest size array in Gnat 2005 for the PC?
- Previous by thread: Largest size array in Gnat 2005 for the PC?
- Next by thread: Re: Largest size array in Gnat 2005 for the PC?
- Index(es):
Relevant Pages
|