[LLVMdev] measuring the stack size

Duncan Sands baldrick at free.fr
Thu Apr 17 12:43:10 PDT 2008

> 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 linux kernel uses the attached script to check the stack usage of


-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkstack.pl
Type: application/x-perl
Size: 4349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080417/7a6d8f61/attachment.bin>

More information about the llvm-dev mailing list