> -----Original Message-----
> From: Eric Botcazou [mailto:ebotca...@adacore.com] 
> Sent: Wednesday, October 13, 2010 4:43 PM
> To: sebastianspublicaddr...@googlemail.com
> Cc: gcc@gcc.gnu.org; Joe Buck
> Subject: Re: show size of stack needed by functions
> 
> We have had something along these lines in our compiler at 
> AdaCore for a few 
> years; it's called -fcallgraph-info, it generates a very 
> low-level callgraph 
> in VCG format for each compilation unit, and the nodes can be 
> decorated with 
> information (typically stack usage indeed).  Then you run a 
> script to "link" 
> all the VCG files for a program and you can (try and) compute 
> the worst case 
> stack usage for example.  This works reasonably well for 
> embedded stuff.
> 
> I'll try and submit something before stage 1 ends if people 
> are interested.

Yes, I'm very interested.

Eric Weddington

Reply via email to