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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
