Re: Application for Specific Processors
Re: Application for Specific Processors
- Subject: Re: Application for Specific Processors
- From: Christian Stieber <email@hidden>
- Date: Mon, 08 May 2006 09:57:46 +0200
At 21:37 07.05.2006 -0500, Rick Langschultz wrote:
Example: If i compile an intel specific binary and a powerpc specific
binary can i create a wrapper that determines the processor type and
loads the appropriate binary, or should I just use #define directives
in my header files???
Well, MacOS should already do the "load the correct binary
for the CPU" part, so why do you want to duplicate it?
Presumeably, if you have an x86 binary and run on a x86
system, that binary should be used. So #define is the
way ro go.
UNLESS you are trying to put more features into the PPC
version than the x86 version --- users could simply remove
the x86 binary from the app then to get the PPC features on
their x86 boxes. A loader provided by you can prevent this,
but don't rely on it --- people can hack the loader.
The other way, having more features in the x86 version, shouldn't
be a problem since AFAIK MacOS doesn't have an x86 emulator, so
people will not be able to run the x86 binary on a PPC machine
unless they create their own x86 emulator first (which is a bit
more work than just hacking your loader).
Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden