measuring the stack size

Date: Thu, 17 Apr 2008 13:54:12 -0400
From: “Jonathan S. Shapiro” <shap@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

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: