[LLVMdev] measuring the stack size

Chris Lattner sabre at nondot.org
Thu Apr 17 11:33:32 PDT 2008


On Thu, 17 Apr 2008, Jonathan S. Shapiro wrote:
>> Depending on how much precision you need, you could use the
>> llvm.frameaddress intrinsic.
>
> Chris:
>
> This prompts me to a related question. For procedures that do not call
> alloca() at run time, is there a way to learn the stack frame size in
> bytes for each procedure at static compile time?

I think it is dumped if you pass -print-machineinstrs to llc.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list