Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Port from Win to OSX with Inline functions



On Oct 9, 2006, at 7:34 AM, Steve Sisak wrote:

At 10:03 AM -0400 10/9/06, Chris Edgington wrote:
FYI ... found a short-term solution ... and some interesting things ...

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.


-Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Port from Win to OSX with Inline functions (From: Chris Edgington <email@hidden>)
 >Re: Port from Win to OSX with Inline functions (From: Chris Edgington <email@hidden>)
 >Re: Port from Win to OSX with Inline functions (From: Steve Sisak <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.