Re: inlining
Re: inlining
- Subject: Re: inlining
- From: Sanjay Patel <email@hidden>
- Date: Mon, 17 Dec 2007 08:14:10 -0800 (PST)
--- Steve Checkoway <email@hidden> wrote:
>
> On Dec 16, 2007, at 12:39 PM, Greg Guerin wrote:
>
> > Steve Checkoway wrote:
> >
> >> $ gcc -Wall -O3 inline.c -S
> >
> > Which suggests it's the OP's optimization-level setting that leads
> > to the
> > lack of inlining.
>
>
> That or since the function isn't declared as static, it is being
> exported and thus since there is an out of line copy, it looks like it
> hasn't been inlined when in fact, it has. I'm not sure if in "produce
> out of line code with jump and return instructions" the jump and
> return instructions refer to the out of line copy or the calling
> function.
The OP didn't say if he was expecting inlining across files. Mainstream GCC
doesn't have this ability afaik.
http://gcc.gnu.org/wiki/LinkTimeOptimization - "Nothing really works yet."
http://sysrun.haifa.il.ibm.com/hrl/greps2007/papers/greps-07-lto.pdf
--Sanjay
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Re: inlining (From: Steve Checkoway <email@hidden>) |