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



Simply using inline will cause the linker to keep just one implementation, but for this to happen, all declarations must be inline.

Steve - is it possible that you are referring to the behavior of gcc3? According to the Apple docs, gcc3 had the following option enabled by default:


-fcoalesce
Coalesce duplicated functions and data. The linker will discard all but one, saving space. Enabled by default. (APPLE ONLY)


However - the gcc4 docs say that this option has been removed (and trying it in the makefile shows that it is no longer an option). However, the gcc4 docs say that this behavior is now always performed - but it doesn't seem to be the case.

-Chris
_______________________________________________
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.