Re: Port from Win to OSX with Inline functions
Re: Port from Win to OSX with Inline functions
- Subject: Re: Port from Win to OSX with Inline functions
- From: Colin Hirsch <email@hidden>
- Date: Tue, 10 Oct 2006 15:23:37 +0200
> >>1) No inlining at all happens unless optimization is enabled -
> >>regardless of the always_inline attribute.
> >
> >Yup, I filed a bug on that and it was closed as "works ad designed"
> >-- seem the compiler folks, consider inlining an "optimization".
>
> In my experience, the always_inline attribute always inlines as long
> as the function is inlineable, regardless of optimization level.
> However, declaring a function as inline without the always_inline
> attribute will cause it to not be inlined when building unoptimized
> code.
The GCC documentation has a quite comprehensive page on inlining:
http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/Inline.html
Regards, Colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden