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

7 lines
226 B
Bash
Raw Normal View History

2019-02-12 03:26:23 +08:00
#!/bin/bash
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