Master low-level computing from the ground up-code, compile, debug, and run real RISC-V programs without needing expensive hardware.
RISC-V Assembly Programming for Beginners is your clear, hands-on roadmap into the world of modern RISC-V systems. Whether you're an embedded enthusiast, a CS student, or a curious self-learner, this book teaches you how to write working RISC-V assembly from scratch using only free, open-source tools like QEMU, the GNU toolchain, and boards such as the ESP32-C3 and VisionFive.
Inside, expert engineer Michael G. Gutierrez guides you step-by-step through the fundamentals of the RISC-V ISA, instruction syntax, memory layout, calling conventions, and low-level debugging. Each chapter delivers executable examples that transition smoothly from emulated environments to real silicon, providing the solid foundation you need to advance in embedded systems, firmware engineering, or computer architecture.
What You'll Learn
-
Write RISC-V assembly programs that run on QEMU and real boards
-
Set up and use the GNU toolchain (GCC, objdump, GDB) for bare-metal programming
-
Understand registers, memory access, loops, branching, and stack operations
-
Debug real programs using GDB and OpenOCD with hardware or emulators
-
Call C functions from assembly and vice versa for efficient integration
-
Build real-world skills to advance toward embedded Linux, interrupt handling, and performance tuning
All examples are complete, tested, and fully explained-no stubs, no placeholders, just working code you can compile today.
Michael G. Gutierrez is a veteran embedded systems architect with years of experience in firmware development for aerospace, automotive, and IoT. He speaks regularly at RISC-V Summit and Embedded Linux Conference, mentors low-level developers, and contributes to open-source projects in the RISC-V ecosystem. His practical experience and community involvement ensure that every page of this book is grounded in the realities of modern embedded programming.
Why This Book Is Different
-
Beginner-friendly focus: You start with "Hello, World" and build real skills-not just theory.
-
Complete toolchain coverage: No commercial IDEs-just real, free tools that scale to any system.
-
Professional development techniques: Learn workflows that align with industry practi