[LLVMdev] measuring the stack size

Chris Lattner sabre at nondot.org
Thu Apr 17 10:49:24 PDT 2008

On Thu, 17 Apr 2008, guan mailist wrote:
> Does anyone have good ideas to dynamically measure the stack size of a
> program by using LLVM.
> I am trying to add some new intrinsic functions after each "alloca" in
> bitcode. Is it a good way to do it?
> Any existing tools can help me to do so?

Depending on how much precision you need, you could use the 
llvm.frameaddress intrinsic.



More information about the llvm-dev mailing list