BlitzMax on Mac hardware
Archives Forums/MacOS X Discussion/BlitzMax on Mac hardware
| ||
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? |
| ||
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. |
| ||
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. |
| ||
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. |