Re: CFBundleGetFunctionPointerForName
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