• 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: "Shawn Erickson" <email@hidden>
  • Date: Thu, 20 Nov 2008 07:43:28 -0800

On Thu, Nov 20, 2008 at 6:50 AM, Påhl Melin <email@hidden> wrote:
> I'm very tempted to use the new 64-bit Objective-C ABI in my next
> project. Primarily because of the improved interoperability with C++
> destructors, that are now called when unwinding Objective-C exceptions
> and should make it possible to use RAII designs in Objective-C++
> programs.
>
> If I were to require the use of the 64-bit ABI in my next project,
> which mac models would the application run on? And is it possible to
> detect at runtime if I'm running the old 32-bit ABI or the new 64-bit
> to enable a fallback on non-64-bit models?

The decision between 64b and 32b is made at compile time for your
compiled code. As a result your 64b executable wont run under the 32b
runtime not matter what you do.

...however you can of course (normally you would do this) create a
universal application that contains x86-64, x86, etc. in it and at
launch time the OS can decide which to run based on the systems
capabilities.

Review the universal binary conceptual doc...

http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary

-Shawn
_______________________________________________

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

  • Follow-Ups:
    • Re: 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>
References: 
 >Which Mac models use the new 64-bit Objective-C ABI? (From: "Påhl Melin" <email@hidden>)

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