# 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 -O0 -c uart.c /opt/mips/bin/mips-idt-elf-as -o initcodeelf.o initcodeelf.s # /opt/mips/bin/mips-idt-elf-ld initcodeelf.o uart.o -Ttext 0x00000010 works /opt/mips/bin/mips-idt-elf-ld -o uart.elf initcodeelf.o uart.o -Ttext 0x00000010 -Tdata 0x0000a000 /opt/mips/bin/mips-idt-elf-objdump -d uart.elf > uart.elf.txt # # generate .rom file with method label annotations # java hades.models.mips.tools.Elf2Rom uart.elf uart.rom java hades.models.mips.basic.ElfTxtLabels2Rom uart.elf.txt uart.rom # # copies renamed to .txt for the website links # cp uart.c uart.c.txt cp uart.rom uart.rom.txt # echo "ok."