RVBTCC/run.sh
2024-12-07 14:13:34 +08:00

7 lines
133 B
Bash

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