7 lines
133 B
Bash
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
|