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

Re: CFBundleGetFunctionPointerForName


  • Subject: Re: CFBundleGetFunctionPointerForName
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 14 Mar 2008 02:05:50 -0700


On Mar 13, 2008, at 11:57 AM, Chris Espinosa wrote:

The C and C++ standards are silent on these issues, but the underscore conventions are industrywide.


The fact that the standards are silent on the issue was my point. C++ name mangling is hugely platform dependent, as I understand it.

I guess the only platforms I checked were PPC mac, PPC linux, x86 mac, x86 linux (and of course just one distro of linux each). Both mac prepend an underscore, and neither linux (ubuntu for ppc and fedora for x86) did. Someone is now telling me that Windows doesn't use the prefix, but this isn't something I can check myself.

As for assembly issues, it seems that the two gcc assemblers for x86 I tried, Apple's and FSF's use % for register prefixes. I'm not sure if there is any case with ppc where it would be ambiguous, but ibm's examples for assembly don't include the r prefix for registers <http://www.ibm.com/developerworks/linux/library/l-ppc/ > that Apple's does so there really can't be any confusion. FSF's gcc follows ibm.

So for industry-wide? Not sure. Macs are the only example I have that uses the prefix.

--
Steve Checkoway

    "Anyone who says that the solution is to educate the users
    hasn't ever met an actual user." -- Bruce Schneier




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: CFBundleGetFunctionPointerForName
      • From: Alastair Houghton <email@hidden>
    • Re: CFBundleGetFunctionPointerForName
      • From: Jonas Maebe <email@hidden>
References: 
 >CFBundleGetFunctionPointerForName (From: Nava Carmon <email@hidden>)
 >Re: CFBundleGetFunctionPointerForName (From: "Sherm Pendley" <email@hidden>)
 >Re: CFBundleGetFunctionPointerForName (From: Steve Checkoway <email@hidden>)
 >Re: CFBundleGetFunctionPointerForName (From: Alastair Houghton <email@hidden>)
 >Re: CFBundleGetFunctionPointerForName (From: Chris Espinosa <email@hidden>)

  • Prev by Date: project preferences in 3.1
  • Next by Date: Re: project preferences in 3.1
  • Previous by thread: Leading underscores (was Re: CFBundleGetFunctionPointerForName)
  • Next by thread: Re: CFBundleGetFunctionPointerForName
  • Index(es):
    • Date
    • Thread