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