p0: Running Rust code on RISC-V in QEMU · Meyer Zinn
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
- RISC-V Bytes: Rust Cross-Compilation · Daniel Mangumdanielmangum.com
- Writing an OS in Rustos.phil-opp.com
- Rewriting Bun in Rust | Bun Blogbun.com
- Rust Language Cheat Sheetcheats.rs
- A half-hour to learn Rustfasterthanli.me
- Linux in a Pixel Shader - A RISC-V Emulator for VRChatblog.pimaker.at
- The Rust Programming Language - The Rust Programming Languagedoc.rust-lang.org
- Write your Own Virtual Machinejmeiners.com
- Programming a Guessing Game - The Rust Programming Languagedoc.rust-lang.org
- Hello, World! - The Rust Programming Languagedoc.rust-lang.org
- Why am I writing a Rust compiler in C? – notgull – The world's number one source of notgullnotgull.net
- Ralph Wiggum as a "software engineer"ghuntley.com