Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?
Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?
- Subject: Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?
- From: "Clark S. Cox III" <email@hidden>
- Date: Wed, 01 Oct 2014 07:58:55 -0700
We couldn't provide the new runtime for 32-bit Intel (or PowerPC, for that
matter) because that would break compatibility with all existing code. 32-bit
arm didn't have that issue because the only existing code that mattered was
Apple's own apps, and we could easily recompile those.
Sent from my iPhone
> On Oct 1, 2014, at 01:53, Motti Shneor <email@hidden> wrote:
>
> Thank you Clark and Mike for the answer. I finally figured it out myself getting enough link errors.
>
> One small question though. How is it the new ObjC runtime (ARC and all...)
>works fine on 32bit iOS builds, but not on Mac? Why did apple not deliver
>the runtime for the Mac? Is it so different? I know the processors aren't
>the same, but at the cost of some inefficiency in the runtime, developers
>would have much easier time going to ARC and modern Objective-C.
>
> Any idea why this situation?
>
> Motti.
>> On 30 בספט 2014, at 23:54, "Clark S. Cox III" <email@hidden> wrote:
>>
>>
>>
>>> On Sep 30, 2014, at 12:49, Motti Shneor <email@hidden> wrote:
>>>
>>> Hello everyone. This seems to be an upside-down question, but bare with me...
>>>
>>> Our Mac Client-side application can (sadly) only be built and run
>>>in 32bit-only. Reason is: bit parts of it are legacy 32bit-only C++
>>>code shared with other platforms (Windows, Android, Linux, etc.) client
>>>code as well as the Windows-only server. This code contains
>>>networking-protocol code which is 64bit unsafe, and so it can't really
>>>be replaced.
>>>
>>> Until All platforms and products move together to 64bit, we're bound to
>>>build our app 32bit only.
>>>
>>> Now I'm building a new module for this application as an external private
>>>dynamic framework. I would like to use ARC, and the new niceties of modern
>>>Obj-C runtime for the new framework, but these are only available in
>>>64bit-only builds.
>>>
>>> So… Could my 32bit-only Mac Application depend-on, load, link, and
>>>use, a 64bit-only framework?
>>
>> No.
>>
>> You basically have two options:
>>
>> 1) Build a helper app or tool that is 64-bit (and can therefore link 64-bit code)
>>and call that too, from your 32-bit app
>> 2) Move your 64-bit-unsafe code into a helper tool and make the rest of the app 64-bit.
>>
>> Both options rely on having two separate processes, one running 32-bit code and
>>one running 64-bit code, and only differ in which you put in the main app and
>>which you put in the helper.
>>
>>
>> --
>> Clark Smith Cox III
>> email@hidden
>
> Motti Shneor
> e-mail: email@hidden
> ----------------------------------------
> Ceterum censeo Microsoftinem delendam esse
>
>
_______________________________________________
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