Re: Largest size array in Gnat 2005 for the PC?
- From: "ME" <abcdefg@xxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 07:16:51 -0700
"Martin Krischik" <krischik@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4726d889$1@xxxxxxxxxxxxxxx
ME schrieb:so then
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:
Type My_Array is array (1..Long_Long_Integer'last) of record...
is fine?
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: Martin Krischik
- Re: Largest size array in Gnat 2005 for the PC?
- From: Pascal Obry
- Re: Largest size array in Gnat 2005 for the PC?
- References:
- Largest size array in Gnat 2005 for the PC?
- From: ME
- Re: Largest size array in Gnat 2005 for the PC?
- From: Martin Krischik
- Largest size array in Gnat 2005 for the PC?
- Prev by Date: Re: Largest size array in Gnat 2005 for the PC?
- Next by Date: Re: Real Time IO routines
- Previous by thread: Re: 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
|