Building Mac Software

TerlObar's picture
TerlObar
July 22, 2009 - 8:37pm
This is a question to any of you Mac users out there as I am not one.

Is it possible to compile code on a PowerPC based Mac that will run on either another PowerPC based Mac or an Intel based Mac?  Or even cross-compile to both architectures?  And do you know how to do it?

I vaguely remember talk of something called Universal bytecode or something similar.  Does anyone know anything more about this?

The reason I'm asking is that potentially have access to a PowerPC based G4 MacBook.  (Actually, there is no potentially about it.  It's been sitting in the window sill of my office since I started my new job back in February.  It is just missing the little bit of the power cord that connects the little white box with the transformer in it to the wall and I'm sure the IT guys have a spare somewhere.)  If I can compile for both chip sets, I could start building my Second Sathar War game on the Mac as well as for Windows and Linux. 

Anyway, let me know if any of you have any experience with this.
Ad Astra Per Ardua!
My blog - Expanding Frontier
Webmaster - The Star Frontiers Network & this site
Founding Editor - The Frontier Explorer Magazine
Managing Editor - The Star Frontiersman Magazine
Comments:

6of1's picture
6of1
July 24, 2009 - 9:08pm
Yes. Xcode will compile to universal binary, which will run on all PPC and x86 Macintoshes.

Be seeing you.
“I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered -- my life is my own.”