[LLVMdev] measuring the stack size

proguan proguan at gmail.com
Fri Apr 18 06:35:35 PDT 2008


I mean to compute the upper bound dynamically at run time, not 
statically at compile time.
Is it possible to do so by LLVM? If so, how? by using 
"llvm.frameaddress"? Is it precise?

Thanks,
  GUan

Jonathan S. Shapiro wrote:
> On Fri, 2008-04-18 at 03:01 +0100, guan mailist wrote:
>
>   
>> Is it possible to compute the upper bound of stack size in bits?
>>     
>
> Even if LLVM can provide individual frame sizes, computing an upper
> bound on stack size will rely on knowing a lot about the behavior of the
> program.
>
>   




More information about the llvm-dev mailing list