Jump to ratings and reviews
Rate this book

RISC-V Assembly Programming for Beginners: A Practical Guide to Writing, Running, and Debugging RISC-V Code from Scratch Using QEMU, the GNU Toolchain, and Real Hardware

Rate this book
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 LearnWrite 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 DifferentBeginner-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 practices and real engineering teams.

Future-proof content: Covers RV32I, toolchain integration, and hardware interfaces, all relevant in 2025 and beyond.


Who This Book Is ForStudents and hobbyists exploring RISC-V architecture

Embedded developers transitioning from AVR, ARM Cortex-M, or x86

Engineers preparing for low-level interviews or system programming roles

Makers interested in bare-metal development on open-source platforms

144 pages, Kindle Edition

Published July 25, 2025

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.