RVBTCC/run-native.sh
2024-11-18 17:30:20 +08:00

6 lines
142 B
Bash

user@starfive:~/RVBTCC$ cat run.sh
gcc boot.c boot-lib.c &&
./a.out < $1 > $1.s &&
gcc -static $1.s boot-lib.c -o $1.out &&
./$1.out
echo $?