@echo ********************************************************************** @echo ********************************************************************** @echo Make sure to run 'before_build.bat' at least once before running this. @echo ********************************************************************** @echo ********************************************************************** : Delete intermediates else compilation can fail but linking succeed with old files: del Life.o del Life.elf : Fast, ARM code: gcc.exe -c -o Life.o -O3 -mcpu=arm7tdmi -B %SRC%\GBA %SRC%\Life.c : Small, thumb code: : ! Compile for size, not speed (O1?) : gcc.exe -c -o Life.o -O3 -mcpu=arm7tdmi -B %SRC%\GBA %SRC%\Life.c : Assembly Listing: : Spare options: -mthumb-interwork ( -S turns on listing) :Link: -mlong-calls crt0.o -mapcs-32 : Spare options: -mthumb-interwork gcc -o Life.elf -O3 Life.o objcopy -O binary Life.elf Life.bin