The cell architecture is really cool and you can even code for it at home using a consumer PlayStation 3. There is not a lot of memory on the PS3 for Linux and stuff – being able to compile on your OSX machine would be a lot cooler.
I made a Cell cross compiler last night. Here is how to do it:
First of all you need to download and install libgmp3 and libmpfr.
When configuring libgmp3 you need to do it like this:
./configure –host=none-apple-darwin
Then get the toolchain snapshot (or get it from svn) from ps2dev. I used ps3toolchain-20070626.tar.bz2 for this article. You need to fix two scripts in the depends folder:
check-libgmp3.sh and check-libmpfr.sh
Simply change /usr/include/ to /usr/local/include/
Run the toolchain script:
./toolchain.sh
That’s it! It should compile without problems.
Edit: You don’t need libgmp3 – newer versions of libgmp will also do.. Also the toolchain script requires wget. Compile it yourself or use MacPorts or something.






