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!news2.google.com!newshub.sdsu.edu!sn-xt-sjc-02!sn-xt-sjc-06!sn-xt-sjc-09!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 22:52:41 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <13ig61r3bvcs6a9@corp.supernews.com> References: <13idb3jbm28kfbe@corp.supernews.com><4726DD25.7080205@obry.net><13iedlo32k0b63c@corp.supernews.com><47274367.1070009@obry.net> <20071030160021.19047e4e@cube.tz.axivion.com> 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:2668 Date: 2007-10-30T22:52:41-07:00 List-Id: "Stefan Bellon" wrote in message news:20071030160021.19047e4e@cube.tz.axivion.com... On Tue, 30 Oct, Pascal Obry wrote: > ME a �crit : > > I am using the stack. how do I change this at link time using GPL? > > There is no option for that use "new" to allocate the array instead of > declaring it on the stack. While I agree with the given suggestion to allocate large objects on the heap instead of the stack, there is a way to increase the stack size on Windows. We use something like the following in our projects where we need a larger stack on Windows: package Linker is case OS is when "UNIX" => null; when "Windows_NT" => for Default_Switches ("ada") use ("--stack=0x2000000,0x10000"); end case; end Linker; -- Yes, I tried the linker switch -Wl,--stack=0x10000000 in GPL but what is the second number "0x10000" for? Stefan Bellon