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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no 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!news3.google.com!out03b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!sn-xt-sjc-03!sn-xt-sjc-06!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail From: "ME" Newsgroups: comp.lang.ada Subject: Re: Largest size array in Gnat 2005 for the PC? Date: Tue, 30 Oct 2007 06:50:29 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <13iedlo32k0b63c@corp.supernews.com> References: <13idb3jbm28kfbe@corp.supernews.com> <4726DD25.7080205@obry.net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Complaints-To: abuse@supernews.com Xref: g2news2.google.com comp.lang.ada:2638 Date: 2007-10-30T06:50:29-07:00 List-Id: "Pascal Obry" wrote in message news:4726DD25.7080205@obry.net... > 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. I am using the stack. how do I change this at link time using GPL? 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). I am using Windows XP SP2 so my OS is 32 bits. You don't happen to know what the limit is for Windows XP SP2 ? > > 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