# build script/batch-file via gcc cross-compiler and cross-binutils # # we don't want the compiler to optimize the I/O operations away... # /opt/mips/bin/mips-idt-elf-gcc -g -c ks0108.c # # ... but all the optimizations we can get here. # /opt/mips/bin/mips-idt-elf-gcc -O2 -c life.c /opt/mips/bin/mips-idt-elf-as -o initcodeelf.o initcodeelf.s /opt/mips/bin/mips-idt-elf-ld -o life.elf initcodeelf.o life.o ks0108.o -Ttext 0x00000010 /opt/mips/bin/mips-idt-elf-objdump -d life.elf > life.elf.txt # # generate .rom file with method label annotations # java hades.models.mips.tools.Elf2Rom life.elf life.rom java hades.models.mips.basic.ElfTxtLabels2Rom life.elf.txt life.rom # # generate copies rename to .txt for the website links: # cp life.c life.c.txt cp life.rom life.rom.txt echo "ok."