risc-v-tlm/tests/C/timer/compile.sh

4 lines
212 B
Bash
Raw Normal View History

2019-01-22 20:26:41 +08:00
riscv32-unknown-elf-gcc -Wall -I. -O0 -static -march=rv32imac -mabi=ilp32 --specs=nosys.specs timer.c timerasm.S -o timer.elf
objcopy -Oihex timer.elf timer.hex
riscv32-unknown-elf-objdump timer.elf -d > dump