This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Determining if a method is actually inlined
- From: robin <armrobin at 21cn dot com>
- To: jeffreyholle at bellsouth dot net
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 01 Nov 2005 15:58:04 +0800
- Subject: Re: Determining if a method is actually inlined
- References: <dk6374$r40$1@sea.gmane.org>
- Reply-to: armrobin at 21cn dot com
On Mon, 2005-10-31 at 16:46 -0500, Jeffrey Holle wrote:
> 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?
>
Hi, Jiffrey:
If you determine your code actually must expand,
what about do you use #define to replace the inline ?
line is a suggestion, but #define is a order to compiler.