• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inline Woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Inline Woes (From: Ben Weiss <email@hidden>)
 >Re: Inline Woes (From: Eric Albert <email@hidden>)

  • Prev by Date: Xcode 2.3: inconsistent local symbol count
  • Next by Date: Applescripts and Widgets....how to?
  • Previous by thread: Re: Inline Woes
  • Next by thread: Xcode 2.3: inconsistent local symbol count
  • Index(es):
    • Date
    • Thread