When compiling C++ with GCC 4.4 or MSVC is it possible to get the compiler to emit messages when a function is inlined?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With g++, I don’t think you can make g++ report that, but you can examine the resulting binary with any tool that shows symbols,
nmfor example:vs
(no output from nm in the second case)
EDIT:
Also, profilers may be of use. gprof shows, on these two examples:
vs. just