run: build # qemu-system-riscv32 -machine virt -m 128M -bios none -device loader,file=./hello -nographic qemu-system-riscv32 -machine virt -m 128M -bios none -kernel hello -nographic build: rm -rf hello riscv64-unknown-elf-as -march=rv32i -mabi=ilp32 hello.s -o hello.o riscv64-unknown-elf-ld -m elf32lriscv hello.o -o hello