Cross-compile C into Atari ST (TOS) binaries with m68k-atari-mint-gcc
2.3K
Reproducible Docker environment to compile C into Atari ST (TOS, Motorola 68000) binaries, then run them in Hatari.
Toolchain: m68k-atari-mint-gcc (Vincent Riviere's PPA) on Ubuntu 22.04, slim multi-stage image (~136 MB).
docker run --rm -u $(id -u):$(id -g) -v "$PWD:/app" fxrobin/m68k-compiler make
ls -l target/build/hello.tos
With this Makefile layout (all src/*.c linked into one TOS program):
.
├── Makefile # src/*.c -> target/obj/*.o -> target/build/hello.tos
└── src/
└── hello.c
hatari --tos tos.img -d target/build
# then on the GEM desktop: open drive C, double-click HELLO.TOS
(You must provide your own TOS image, tos.img, for licensing reasons.)
Content type
Image
Digest
sha256:b62d79e69…
Size
49.7 MB
Last updated
17 days ago
docker pull fxrobin/m68k-compiler