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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Largest size array in Gnat 2005 for the PC? Date: Tue, 30 Oct 2007 16:00:21 +0100 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <20071030160021.19047e4e@cube.tz.axivion.com> References: <13idb3jbm28kfbe@corp.supernews.com> <4726DD25.7080205@obry.net> <13iedlo32k0b63c@corp.supernews.com> <47274367.1070009@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: infosun2.rus.uni-stuttgart.de 1193756467 13494 129.69.226.24 (30 Oct 2007 15:01:07 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Tue, 30 Oct 2007 15:01:07 +0000 (UTC) X-Newsreader: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-URL: http://www.axivion.com/ Xref: g2news2.google.com comp.lang.ada:2642 Date: 2007-10-30T16:00:21+01:00 List-Id: On Tue, 30 Oct, Pascal Obry wrote: > ME a =E9crit : > > I am using the stack. how do I change this at link time using GPL? >=20 > 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" =3D> null; when "Windows_NT" =3D> for Default_Switches ("ada") use ("--stack=3D0x2000000,0x10000"= ); end case; end Linker; --=20 Stefan Bellon