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: "Shawn Erickson" <email@hidden>
- Date: Thu, 20 Nov 2008 07:47:46 -0800
On Thu, Nov 20, 2008 at 7:43 AM, Shawn Erickson <email@hidden> wrote:
> 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
Oooh I had thought that the 64b aspect got more integrated into the
universal binary document (IMHO it really should, off to file a
defect). Likely more helpful to review...
http://developer.apple.com/documentation/Darwin/Conceptual/64bitPorting
-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