[LLVMdev] Stack usage analysis using LLVM

Snehasish Kumar ska124 at sfu.ca
Tue Sep 3 11:27:40 PDT 2013


I was wondering if someone knows about any effort within the LLVM community
to perform stack usage analysis per function similar to GCC's

In short, with fstack-usage, gcc prints out the maximum stack usage per
function (in bytes) which it can determine as a) static (no calls to alloca
in source) b) bounded (calls to alloca with constants) c) unbounded (calls
to alloca with variables). A more detailed description can be found in this
pdf <http://ols.fedoraproject.org/GCC/Reprints-2005/hainque-Reprint.pdf>.

Snehasish Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130903/6d2b51f0/attachment.html>

More information about the llvm-dev mailing list