Setting up VASM for cross compilation (Cygwin/Linux)

Author: Saulot - Published 26-12-2011 06:57
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.

Cross compiling and setting up of Cygwin and gcc 4.x.x under Windows

Author: Saulot - Published 26-12-2011 06:35
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.

Reducing size of executables produced by gcc

Author: Saulot - Published 07-12-2011 08:00
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.