# build script/batch-file via gcc cross-compiler and cross-binutils # # we need -g instead of -O here, because we don't want the compiler to # optimize the I/O store operations away... # /opt/mips/bin/mips-idt-elf-gcc -g -c led.c /opt/mips/bin/mips-idt-elf-as -o initcodeelf.o initcodeelf.s /opt/mips/bin/mips-idt-elf-ld -o led.elf initcodeelf.o led.o -Ttext 0x00000010 /opt/mips/bin/mips-idt-elf-objdump -d led.elf > led.elf.txt # # generate .rom file with method label annotations # java hades.models.mips.tools.Elf2Rom led.elf led.rom java hades.models.mips.basic.ElfTxtLabels2Rom led.elf.txt led.rom # cp led.rom led.rom.txt cp led.c led.c.txt echo "ok."