如何找出哪些功能没有内联 [英] How to find out which functions were NOT inlined
本文介绍了如何找出哪些功能没有内联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法获得那些没有任何地方内联函数列表?无论是通过传递一个选项的GCC,通过检查二进制?
Is there a way to obtain a list of functions that were NOT inlined anywhere? Either by passing an option to gcc or by inspecting the binary?
编辑:我知道如何明确要求不使用gcc的内置属性noinline始终被内联函数
I know how to explicitly ask for a function not to be inlined by using gcc's builtin attribute noinline.
推荐答案
使用gcc的 -fdump树,所有
并搜索转储文件内联。
Use gcc's -fdump-tree-all
and search the dump files for "inline".
这篇关于如何找出哪些功能没有内联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文