• 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 function problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inline function problems


  • Subject: Re: inline function problems
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 17 Oct 2010 14:07:08 -0700

On Sun, Oct 17, 2010 at 1:29 PM, Velocityboy <email@hidden> wrote:
> This is actually not always true. If you have an non-static inline in a header file, the compiler is pretty smart about it. You can see this in action if you generate the assembly and look it it. This:

IIRC there's no guarantee that a two references to the same non-static
inline function will have the same address even within the same
translation unit, depending on optimization level, order of appearance
in the source file, and context in the call site. But that might be a
Microsoftism, or just a complete fabrication of my mind.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: inline function problems
      • From: Velocityboy <email@hidden>
References: 
 >inline function problems (From: Ken Tozier <email@hidden>)
 >Re: inline function problems (From: Kyle Sluder <email@hidden>)
 >Re: inline function problems (From: Velocityboy <email@hidden>)

  • Prev by Date: Re: inline function problems
  • Next by Date: Re: inline function problems
  • Previous by thread: Re: inline function problems
  • Next by thread: Re: inline function problems
  • Index(es):
    • Date
    • Thread