Re: compile for i86 on my PPC?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On May 5, 2006, at 13:05 , Paul Archibald wrote: 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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 :-}). This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin C. Walker