• 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: Which Mac models use the new 64-bit Objective-C ABI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Which Mac models use the new 64-bit Objective-C ABI? (From: "Påhl Melin" <email@hidden>)
 >Re: Which Mac models use the new 64-bit Objective-C ABI? (From: "Shawn Erickson" <email@hidden>)
 >Re: Which Mac models use the new 64-bit Objective-C ABI? (From: "Påhl Melin" <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 5, Issue 1989
  • Next by Date: Re: NSArrayController and table column bindings retain/dealloc woes
  • Previous by thread: Re: Which Mac models use the new 64-bit Objective-C ABI?
  • Next by thread: Re: Which Mac models use the new 64-bit Objective-C ABI?
  • Index(es):
    • Date
    • Thread