How to find out which functions were NOT inlined
问题 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? EDIT: I know how to explicitly ask for a function not to be inlined by using gcc's builtin attribute noinline. 回答1: Use gcc's -fdump-tree-all and search the dump files for "inline". 回答2: Add -fdump-ipa-inline to your compiler options. Grep the file yoursourcefile.inline which is created next to the object file for "Considering inline candidate" to find