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