ATARI MiNT cross-compiler for Mac OS X
Based on the latest m68k-atari-mint cross-compiler work of Vincent Rivičre (who is providing cygwin binaries on his site),
I have built the gcc cross-compiler with his patches under Mac OS 10.5 and make them available here for other Mac OS X users.
The old description on how to build the cross-compiler yourself has been moved here.
The cross-compiler must be installed into the directory /opt/cross-mint. This directory can be created using the following Terminal commands (which require administrator privileges):
sudo mkdir -p /opt/cross-mint sudo chown $USER /opt/cross-mint
After this initial setup, the binaries can be extracted (with your standard user) using the following command:
tar xvzf m68k-cross-mint-bin-darwin-i386-20110409.tgz --directory /opt/
Cross-compiler binary
For simplicity only a single "all included" package m68k-cross-mint is provided here which runs on Intel based Apple Computers. It contains binutils 2.21, mintbin 0.3, gcc 4.5.2, pml 2.03, mintlib (CVS of 23th February 2011) and gemlib (CVS of 9th April 2011).
- m68k-cross-mint-bin-darwin-i386-20110409.tgz (Intel Mac; built on 9 April 2011)
Previous Universal binary release can still be found here:
m68k-cross-mint-bin-darwin-universal-20100127.tgz (as of 27 January 2010)
This release contains binutils 2.20, mintbin 0.3, gcc 4.4.3, pml 2.03, mintlib 0.59.0 (CVS of 23th January 2010), gemlib 0.43.6 (CVS of 27th January 2010) and cflib (CVS of 27th January 2010).
Using the cross-compiler
After installation, you should create/modify your bash profile by enhancing ~/.profile with the following lines:
# m68k-atari-mint cross compiler export PATH=$PATH:/opt/cross-mint/bin export MANPATH=$MANPATH:/opt/cross-mint/share/man
This allows you to use the cross-compiler using m68k-atari-mint-gcc (or any other tool of it) and query its man pages.
The following simple "hello world" example can be compiled for TOS using the command:
m68k-atari-mint-gcc hello.c -o hello.tosThis creates a
hello.tos application which can be run on a TOS compatible system (for example under MacAranym).
#include <stdio.h>
int main(int argc, char* argv[])
{
puts("Hello, world !");
return 0;
}