[LLVMdev] measuring the stack size

guan mailist proguan at gmail.com
Thu Apr 17 19:01:34 PDT 2008


> Date: Thu, 17 Apr 2008 13:54:12 -0400
> From: "Jonathan S. Shapiro" <shap at eros-os.com>
>
> >
> > The GC infrastructure exposes this information in a framework suitable
> > for emitting metadata tables from a compiler plugin, if your interest
> > lies in that direction.
>
> That too, but my immediate interest was computing an upper bound on
> stack size for the Coyotos kernel.



Does 'llvm.frameaddress' work for this purpose? Have you tried it?

It seems 'llvm.frameaddress' is not very precise.

Is it possible to compute the upper bound of stack size in bits?

Many thanks,
  GUan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080418/03f27ca2/attachment.html>


More information about the llvm-dev mailing list