flâneur — a map of the web's best reading

p0: Running Rust code on RISC-V in QEMU · Meyer Zinn

meyerzinn.tech · 4,173 words · saved by 1 readers

The goal for this project is to run some code on a RISC-V virtual machine and start learning how to debug it. Key terms are bolded, and you may want to search online for more information about them. The Rust standard toolchain already supports RISC-V, so we can use rustc to cross-compile. In a command prompt, install the nightly toolchain of Rust and add RISC-V as a target. Cargo is the Rust package manager and helpfully provides wrappers around most of the Rust toolchain, so cargo will be your main point of contact with Rust. A Rust package (described by a Cargo.toml manifest file) is a collection of files that provide one or more crates. A crate is either a library or an executable program, referred to as either a library crate or a binary crate, respectively. A target is a platform that you want your code to run on. Crates are usually inferred automatically based on the layout of the project — e.g., if there is a file called src/main.rs , Cargo assumes you wanted to add a binary cra

p0: Running Rust code on RISC-V in QEMU · Meyer Zinn Meyer Zinn Operating systems at Apple © 2026. All rights reserved. p0: Running Rust code on RISC-V in QEMU Sun, Mar 5, 2023 Table of Contents 📝 Overview The goal for this project is to run some code on a RISC-V virtual machine and start learning how to debug it. Key terms are bolded , and you may want to search online for more information about them. 🛠️ Setting up the toolchain The Rust standard toolchain already supports RISC-V, so we can use rustc to cross-compile. In a command prompt, install the nightly toolchain of Rust an

Explore this link on the map →

related reading