use elf as ext
This commit is contained in:
parent
4e591092db
commit
b4dbce76cf
9 changed files with 31 additions and 61 deletions
10
run.sh
10
run.sh
|
@ -1,6 +1,6 @@
|
|||
gcc boot.c &&
|
||||
./a.out < $1 > $1.s &&
|
||||
riscv64-linux-gnu-gcc-12 -static $1.s -o $1.out &&
|
||||
qemu-riscv64 $1.out
|
||||
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.out
|
||||
rm $1.s $1.elf boot.elf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue