How to compile C programs to 68000 assembler

You can experiment and investigate how well your compiler compares with a production quality compiler for the Motorola 68000. The GNU C compiler gcc version 3.0 has been compiled to run under Linux, to generate 68000 assembler. To run it, type the following:

/homes/phjk/gcc-3.0-68000/bin/gcc-68k -O3 -S -fomit-frame-pointer File.c
Where File.c is your example C program. Note that the only library function it knows about is printf. You might also like to experiment with compiling to other target instruction sets; try:
/homes/phjk/gcc-3.0-MIPS/bin/gcc-mips -O3 -S -fomit-frame-pointer File.c
and
/homes/phjk/gcc-3.0-IA64/bin/gcc-ia64 -O3 -S -fomit-frame-pointer File.c
and
/homes/phjk/gcc-3.0-x86/bin/gcc -O3 -S -fomit-frame-pointer BubbleSort.c
You can find some example inputs and outputs at here.

Paul K