[LLVMdev] measuring the stack size
Jonathan S. Shapiro
shap at eros-os.com
Thu Apr 17 10:54:12 PDT 2008
On Thu, 2008-04-17 at 13:39 -0400, Gordon Henriksen wrote:
> On Apr 17, 2008, at 13:00, Jonathan S. Shapiro wrote:
> > 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?
>
>
> 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.
shap
More information about the llvm-dev
mailing list