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: Chris Edgington <email@hidden>
- Date: Tue, 10 Oct 2006 10:37:06 -0400
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:
This email sent to email@hidden