Determining if a method is actually inlined
Ian Lance Taylor
ian@airs.com
Tue Nov 1 00:11:00 GMT 2005
Jeffrey Holle <jeffreyholle@bellsouth.net> writes:
> I am using gcc 4.0.2.
>
> I'm know that the inline keyword is only a sugguestion to a C++
> compiler, because the method's complexity might make inlining
> impossible.
>
> Is there a way to determine if a given method was actually inlined?
You can use -Winline to get a warning when a function marked 'inline'
is not actually inlined.
Ian
More information about the Gcc-help
mailing list