RVBTCC/run.sh
2024-12-23 22:44:35 +08:00

7 lines
157 B
Bash

gcc boot.c -o boot.elf &&
./boot.elf < $1 > $1.s &&
riscv64-linux-gnu-gcc-12 -static $1.s -o $1.elf &&
qemu-riscv64 $1.elf
echo $?
rm $1.s $1.elf boot.elf