Re: Which Mac models use the new 64-bit Objective-C ABI?
Re: Which Mac models use the new 64-bit Objective-C ABI?
- Subject: Re: Which Mac models use the new 64-bit Objective-C ABI?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 20 Nov 2008 13:33:14 -0700
On Nov 20, 2008, at 9:41 AM, Påhl Melin wrote:
But if I create a universal project with both x86-64 and i386 code and
run the application on a 32-bit system, is it possible to detect in
the code that I'm running the 32-bit ABI?
Use the __LP64__ preprocessor definition to differentiate between the
two. If you absolutely need to differentiate in code, you could always
measure the sizeof(void *) or something.
Also, on a 64-bit capable system, will the x86-64 version always be
choosen when launching?
Yes, unless you manually overrode the architecture preference, as
Xcode 3.0 and 3.1 do (they're 64-bit but run 32-bit by default).
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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