BlitzMax on Mac hardware

Archives Forums/MacOS X Discussion/BlitzMax on Mac hardware

Tachyon(Posted 2006) [#1]
Does Intel-Macs and PowerPC-Macs require separate programs to be compiled specifically for each CPU, or does the OS allow for transparent execution of an OSX-compatible program regardless of the underlying hardware?


Winni(Posted 2006) [#2]
You need to create a so-called "universal binary" that includes both PowerPC and x86 code. Beginning with OS X 10.3.9, such universal binaries then will run on both platforms.

There is a thread somewhere here describing how to create UBs. Basically, you need to compile your BlitzMax program on both platforms with the respective version and then "merge" the created binaries to one UB.


xlsior(Posted 2006) [#3]
Universal binaries are definitely the way to go, although the Intel mac's do have some kind of software emulation to run PowerPC binaries as well... significantly more overhead though, so if you can you'd definitely want to create a Intel binary instead.


Tachyon(Posted 2006) [#4]
Thank you for pointing me in the right direction. I checked Mac's developer site and was able to find quite a bit of info on Universal Binaries.