Re: Inline Woes
Re: Inline Woes
- Subject: Re: Inline Woes
- From: Ben Weiss <email@hidden>
- Date: Fri, 26 May 2006 01:37:09 -0700
On May 26, 2006, at 12:45 AM, Eric Albert wrote:
On May 26, 2006, at 12:26 AM, Ben Weiss wrote:
When I remove -fkeep-inline-functions from that one source file,
everything links fine. But I still haven't figured out how to
generate an optimized but non-inlined version of my code, for
profiling purposes. Any suggestions? (This is all happening with
x86 code on a MacBook Pro. XCode 2.3, Shark 4.3.3 (4).)
Tag the function with __attribute__((noinline)), as described at
<http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/
gcc/Function-Attributes.html>.
Brilliant; thanks!
Oddly, this requires that static functions be prototyped separately;
these attributes cannot be incorporated into the static function
definitions. Small price to pay.
Ben
_______________________________________________
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