Published 26-12-2011 06:57
Published 26-12-2011 06:35
This article describes process of compilation and installation of VASM m68k crossassembler under Cygwin/Linux environment. The procedure should also work under FreeMiNT if you have proper tools and can help in building native m68k assembler.
Published 07-12-2011 08:00
note: The Cygwin installation part is little outdated, because there is windows installer which set's up everything.
SDL compilation and installation procedure should work under Linux too. You have to set '--prefix==/usr/m68k-atari-mint' for default configuration.
Article explains how to remove libc/libc++ dependencies in m68k gcc compiler. It reduces binary size dramatically. For example the smallest 'Hello world' linked against libc takes ~55kb, which is alot, for c++ file is even bigger (~380kb). With custom startup code which is provided, executable size drops to ~2k (it can be improved for sure).
Article might be useful for people writing games/demos "near bare metal" (close to the hardware) and with standard system calls (BIOS/XBIOS and so on). It's now possible to use gcc even for producing binaries targetted at lower spec machines like Atari ST (512kb RAM), where every byte is precious.
Credits go to Sqward/MSB for providing first version of C++ startup.