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!news2.google.com!news.glorb.com!news2!uio.no!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!inet.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Tue, 04 Nov 2008 22:44:20 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Stackusage at runtime References: <491068b1$1_1@glkas0286.greenlnk.net> <49109d19$1_5@news.bluewin.ch> In-Reply-To: <49109d19$1_5@news.bluewin.ch> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4910a5fd$0$25386$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1225827837 news.tdc.fi 25386 81.17.205.61:32937 X-Complaints-To: abuse@tdcnet.fi Xref: g2news2.google.com comp.lang.ada:8300 Date: 2008-11-04T22:44:20+02:00 List-Id: Andi wrote: > Thank you Stuart for the help. > Stuart wrote: > >> As a pedagogical point - the Ada language does not really define what >> the stack (if any) is used for, so your results may not be universally >> applicable (but I suspect that is not a significant concern). > > But every task has it's own memory (probably the name "stack" is not > correct. > > for my_task'size use 16*1024 (as I remember) > and it runs .... > > Now I can make a couple of trial to figure out how mucch is really > needed and than I have to do that for all the other tasks .... not my > favorit job ;-) > > Andy Oh, you want to know how much stack-space a task needs overall (worst case), not how much is in use at a particular point in the execution? If so, how about GNATstack: http://www.adacore.com/home/gnatpro/add-on_technologies/stack_analysis/ Or AbsInt's StackAnalyzer: http://www.absint.com/stackanalyzer/ -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .