Re: Possible for a running iOS app to determine if its in 32 bit or 64 bit
Re: Possible for a running iOS app to determine if its in 32 bit or 64 bit
- Subject: Re: Possible for a running iOS app to determine if its in 32 bit or 64 bit
- From: Kyle Sluder <email@hidden>
- Date: Sun, 16 Nov 2014 01:26:37 -0600
On Sat, Nov 15, 2014, at 07:24 PM, David Hoerl wrote:
> I am trying to make a point that some complicated gloming of code has
> resulted in a 64 bit app. Of course the app is build 32 and 64 bit, so
> its possible (but highly unlikely) that the 32 bit version was actually
> launched, not the 64 bit, for who knows what reason. [I'm actually
> running it via Xcode now, on a 64 bit device0.]
>
> I'm looking for any API I can use to settle this once and for all. As
> always, any pointers most appreciated.
Whether code is 32-bit or 64-bit is a compile-time decision. So the
__LP64__ macro that others have mentioned is sufficient to generate
different codepaths on different platforms.
And since 32-bit code and 64-bit code cannot exist in the same process
space on Darwin systems, you know that if *your* code is 64-bit, *all
other code* in your process (including system frameworks, etc.) is
64-bit. There is no situation in which a 32-bit app is linked against a
64-bit copy of Foundation, for example.
--Kyle Sluder
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden