<div dir="ltr">Hi<div><br></div><div>I was wondering if someone knows about any effort within the LLVM community to perform stack usage analysis per function similar to GCC's "<a href="http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Static-Stack-Usage-Analysis.html">-fstack-usage</a>" option?</div>

<div><br></div><div>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 <a href="http://ols.fedoraproject.org/GCC/Reprints-2005/hainque-Reprint.pdf">pdf</a>.</div>

<div><br></div><div><br></div><div>Thanks,</div><div>Snehasish Kumar</div></div>