Re: 32 vs. 64 bit confusion
Re: 32 vs. 64 bit confusion
- Subject: Re: 32 vs. 64 bit confusion
- From: Bill Appleton <email@hidden>
- Date: Fri, 11 Jun 2010 09:15:26 -0700
hi all,
i am building my stand-alone application and NPAPI plugin as "standard 32/64-bit universal"
i can debug in 32 or 64 bit & verify that I am running under these
architectures
but the size of the release binary files is about the same as it used to be under the 32 bit version, i would expect them to be 2x as big
so it seems like the binaries are 64 bit ONLY, no 32 bit code
and Safari can only run the plugin if it is in 64 bit mode -- but Safari can't even see the plugin if it is started in 32 bit mode
so all that suggests that I am building in 64 bit OK but NOT actually combining a 32 and 64 bit version in the same binary as desired
when i "get info" on the exe i see "intel" as the kind
does anyone know what I am doing wrong?
thanks,
bill
On Wed, Jun 2, 2010 at 12:57 PM, David Duncan
<email@hidden> wrote:
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