guest@localhost:~/sp/11-riscv/mini-riscv-os/01-HelloOs$ make
riscv64-unknown-elf-gcc -nostdlib -fno-builtin -mcmodel=medany -march=rv32ima -mabi=ilp32 -T os.ld -o os.elf start.s os.c
guest@localhost:~/sp/11-riscv/mini-riscv-os/01-HelloOs$ ls
Makefile os.c os.elf os.ld README.md start.s
guest@localhost:~/sp/11-riscv/mini-riscv-os/01-HelloOs$ make run
make: *** No rule to make target 'run'. Stop.
guest@localhost:~/sp/11-riscv/mini-riscv-os/01-HelloOs$ make qemu
Press Ctrl-A and then X to exit QEMU
qemu-system-riscv32 -nographic -smp 4 -machine virt -bios none -kernel os.elf
Hello OS!
從頭開始讀這本書
有任何問題用文字在這個 issue 問,臉書也可以!
簽到範例:
示範