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,682c6a4dc0495d48 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!feeder.visyn.net!feed.xsnews.nl!border-2.ams.xsnews.nl!69.16.177.242.MISMATCH!cyclone02.ams!cyclone03.ams.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe24.ams2.POSTED!40385e62!not-for-mail Message-ID: <4910AB86.3040001@bredband.net> From: Per Sandberg User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Stackusage at runtime References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Tue, 04 Nov 2008 20:17:18 UTC Date: Tue, 04 Nov 2008 21:07:34 +0100 Xref: g2news2.google.com comp.lang.ada:8301 Date: 2008-11-04T21:07:34+01:00 List-Id: If you are running GNAT it is quite straight forward and described in detail in the top secret document (The GNAT users guide chapter 22. Stack Related Facilities) In short 1 Compile the code with: gcc -c -fstack-check *.adb 2 Bind your executable with gnatbind -u0 file 3 Set environment variable GNAT_STACK_LIMIT 4 Run your program and terminate clean. 5 Done. I expect that all targets behaves more ore less the same. andi.vontobel@gmx.ch wrote: > Hi. > > Is it possible to figure out how much of the stack is used at a > specific moment? > -> Ada95 Crosscompiler to PPC > (It is a little bit hard to optimize the stacksize ...) > > Thanks, > Andy