comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@bredband.net>
Subject: Re: Stackusage at runtime
Date: Tue, 04 Nov 2008 21:07:34 +0100
Date: 2008-11-04T21:07:34+01:00	[thread overview]
Message-ID: <4910AB86.3040001@bredband.net> (raw)
In-Reply-To: <bf764407-9606-4ee4-aa22-cbb6d00dd84c@d36g2000prf.googlegroups.com>

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



  parent reply	other threads:[~2008-11-04 20:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  7:55 Stackusage at runtime andi.vontobel
2008-11-04 11:44 ` Georg Bauhaus
2008-11-04 12:56   ` Andy
2008-11-04 15:40 ` Stuart
2008-11-04 19:05   ` Andi
2008-11-04 20:44     ` Niklas Holsti
2008-11-05 18:50     ` Niklas Holsti
2008-11-04 19:41 ` Yes it is possible. " anon
2008-11-05  9:31   ` Ludovic Brenta
2008-11-05 21:55     ` anon
2008-11-05 23:07       ` Ludovic Brenta
2008-11-06  5:00         ` anon
2008-11-06 10:17           ` Georg Bauhaus
2008-11-06 18:18         ` Pascal Obry
2008-11-07 10:19           ` Georg Bauhaus
2008-11-07 11:58           ` anon
2008-11-04 20:07 ` Per Sandberg [this message]
2008-11-05  7:33   ` Andy
2008-11-05 16:50     ` Per Sandberg
2008-11-05 17:31       ` Jean-Pierre Rosen
2008-11-05 18:19         ` Keith Thompson
2008-11-05 21:38   ` nobody
2008-11-05 20:14 ` sjw
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox