Preface

1. Purpose and scope

This book is a hands-on, bare-metal introduction to RISC-V assembly programming. You will build and run small RV32 programs under QEMU system-mode using the riscv64-unknown-elf-gcc cross-toolchain. There is no real hardware assumed, and there is no libc available, so every example stays freestanding and prints through the QEMU virt UART.

2. Who this is for

3. How to use this book

4. Contact

Feedback and questions are welcome. Make a comment, open an issue or a pull request on the repository and include the chapter name and section so it is easy to reproduce.

5. Exercises

  1. Clone the repository for this book from GitHub RISC-V Experiments Repository.
  2. Locate the src/ directory and skim the file list.

6. Summary