How to get maximum frame size for each function compiled by gcc?

Is it possible to get the maximum frame size for each function compiled by GCC? I have a bunch of C and C ++ source files in my project, and I want to have stack usage statistics for each function, I just could not find any related options in the GCC manual.

Thanks in advance: -)

+5
source share
1 answer

You can try it -fstack-usage.

http://gcc.gnu.org/gcc-4.6/changes.html

+6
source

All Articles