Re: extracting the size of a function interms of its local variables

"Joachim Durchholz" <joachim_d@gmx.de>
18 Jan 2001 00:53:06 -0500

          From comp.compilers

Related articles
extracting the size of a function interms of its local variables vkprabhuraj@lucent.com (V K Prabhu Raj) (2001-01-05)
Re: extracting the size of a function interms of its local variables joachim_d@gmx.de (Joachim Durchholz) (2001-01-18)
| List of all articles for this month |

From: "Joachim Durchholz" <joachim_d@gmx.de>
Newsgroups: comp.compilers
Date: 18 Jan 2001 00:53:06 -0500
Organization: Compilers Central
References: 01-01-019
Keywords: debug
Posted-Date: 18 Jan 2001 00:53:01 EST

V K Prabhu Raj <vkprabhuraj@lucent.com> wrote:
> I would like to know what is the cumulative size of local variables in
> a function. Is there a easy way for doing this. I am trying to look
> at the symbol table information (stabs) ,output from the compiler.


Which language? Which compiler?


If you need that information at run-time, or just for a particular run
of a function, it might be easier to look at the stack pointer. (Whether
it's really easier depends heavily on circumstances, but it's an
alternative route to try.)


Regards,
Joachim


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.