Week 1
1. Linux Install the running environment (including riscv32-unknown-elf-gcc and qemu-system-riscv32). riscv32-unknown-elf-gcc is the cross compile, which can compile the operating system source code so that it can be used in 32 bit RISC-V. Qemu-system-riscv32 can simulate the 32 bit RISC-V environment on Ubuntu. Therefore, we can test the correctness of operating system without a completed CPU. After finishing the installation, write a simple C program to test the correctness. Firstly, use the riscv32-unknown-elf-gcc to compile the source code and generate an executable file. Then, use qemu-system-riscv32 to run this executable file. This process is shown in following figure. 2. Bootloader Read the book called <Computer Organization and Design RISC-V Edition: The Hardware Software Interface>. This is a thick book for me to read it because I lack knowledge of computer systems. I particularly focused on the second part <Instruction: Language...

评论
发表评论