© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. SmithRISC-V Assembly Language ProgrammingMaker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0137-2_3

3. Tooling Up

Stephen Smith1  
(1)
Gibsons, BC, Canada
 

In this chapter, we will learn to automate building programs on Linux by using GNU Make for the Starfive Visionfive 2 and for the QEMU emulator. Also, by using CMake for Espressif ESP32-C3, that is included with the Espressif SDK. We will then learn to debug these programs with the GNU Debugger (GDB) on all three platforms.

GNU Make

Under RISC-V Linux, the programs were built using a simple shell script to run the GNU Assembler then the Linux linker/loader. Moving forward, a more sophisticated tool ...

Get RISC-V Assembly Language Programming: Unlock the Power of the RISC-V Instruction Set now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.