简体   繁体   English

如何获得gcc编译的每个函数的最大帧大小?

[英]How to get maximum frame size of each function compiled by gcc?

Is it possible to get maximum frame size of each function compiled by GCC? 是否可以获得GCC编译的每个函数的最大帧大小? I have a bunch of C and C++ source files in my project and I want to have a statistics of stack usage of each function, just couldn't find any related options in GCC manual. 我的项目中有一堆C和C ++源文件,我希望得到每个函数的堆栈使用情况统计信息,但在GCC手册中找不到任何相关选项。

Thanks in advance :-) 提前致谢 :-)

You can try -fstack-usage . 你可以试试-fstack-usage

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM