From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6b3ebf057333800c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news3.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!fdn.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <4726DD25.7080205@obry.net> Date: Tue, 30 Oct 2007 08:28:37 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: ME Subject: Re: Largest size array in Gnat 2005 for the PC? References: <13idb3jbm28kfbe@corp.supernews.com> In-Reply-To: <13idb3jbm28kfbe@corp.supernews.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 30 Oct 2007 08:28:42 CET NNTP-Posting-Host: 90.8.35.242 X-Trace: 1193729322 news.orange.fr 5079 90.8.35.242:1206 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:2632 Date: 2007-10-30T08:28:42+01:00 List-Id: ME a �crit : > What is the largest array (in storage units) that you can declare in Gnat > 2005 for the PC? > Does pragma Storage_ size affect this and if so where would you place it in > a procedure? It depends if you want to allocate it on the stack or on the heap. The stack is often smaller but the size can be changed at link time. The heap can use all the memory (physical + virtual) that you have on your computer. There is a limit in the size allocated by a single object imposed by the OS depending on the architecture (32bits / 64bits). Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595