Re: 32 vs. 64 bit confusion
Re: 32 vs. 64 bit confusion
- Subject: Re: 32 vs. 64 bit confusion
- From: David Duncan <email@hidden>
- Date: Wed, 2 Jun 2010 12:57:48 -0700
On Jun 2, 2010, at 12:50 PM, Bill Appleton wrote:
> i am building my xcode NPAPI plugin and stand-alone executable in the standard 32/64-bit universal architecture
>
> 1) does that mean i can ship my app and it will run on any 32 or 64 bit mac? or do i need to ship two versions?
You would need to ship one version, a universal binary with both 32 and 64-bit code.
> 2) Safari can run in 32 bit or 64 bit mode, you can set that in get Info, will my plugin automagically work either way?
Processes automatically load the correct code for the current runtime. If Safari is running in 32-bit, it will load the 32-bit code. If running 64-bit, it will run 64-bit code. If your plugin is intended to work on older systems as well, it will also differentiate PPC vs Intel in the same way.
> 3) I am having trouble getting xcode to launch (say) Safari as either 32 or 64 bit to test both issues, can this be done?
No idea, sorry =/.
> 4) FireFox can't run 64 bit yet, so will it automatically run my 32 bit version on a 64 bit machine?
Yes, this selection is done by the system when you load a dynamic library, so it should work universally.
> 5) I have some dynamic libraries i use, is their usage as 32 bit vs 64 bit automatic based on opening them? I don't do anything special...
The appropriate version will be loaded based on the process they are being loaded into, thus the dynamic libraries you depend on need to support all of the same targets that your plugin needs them in.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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