Re: compile for i86 on my PPC?
Re: compile for i86 on my PPC?
- Subject: Re: compile for i86 on my PPC?
- From: "Justin C. Walker" <email@hidden>
- Date: Fri, 5 May 2006 13:17:56 -0700
On May 5, 2006, at 13:05 , Paul Archibald wrote:
Our Java app uses a JNI lib for mathematical calculations. We build
the JNI with GCC with a makefile.
Since we entering the IntelMac age, we need to target our JNIs to
both the i86 and PPC architectures. I am doing it now by building
the i86 JNI on an intelMini, and the PPC JNI on my PPC powerbook.
My question is this: can I build for a different architecture than
that of the machine doing the compiling?
You can build cross-platform, and in fact, you can produce a single
"binary" that will work on both platforms (the so-called "universal"
binaries, or the Binaries Previously Known as Fat).
You can get full details on Apple's developer website, or in the
Xcode documentation that comes with your Mac. The latter may require
you to install the developer tools, but since you are a developer, I
assume you have already done that :-} There is also a mailing list
(see <http://lists.apple.com>) for Xcode-related development
questions (there is also an archive for this list).
There are (as always) details to be considered (I don't know for sure
what sort of cross-platform Java support is available, for example),
and the versions of Mac OS X that you have to support also affect how
you build (e.g., it's tough to build a universal binary that supports
everything from 10.0 to 10.4 on PowerPC and 10.4 on Intel :-}).
Details are in the documentation and the Xcode mailing list archives.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden