News › 2025 › December 2025
uvm32, a RISC-V sandbox in one C file
Project2025-12-14
uvm32 is a dependency-free RISC-V virtual machine for microcontrollers: one C file, no malloc, and under 3 KB of flash on an STM32L0.
uvm32 by ringtailsoftware is a RISC-V emulator aimed at microcontrollers. It is a single C99 file, it does not allocate, and it is asynchronous so a guest cannot stall the host by spinning. On an STM32L0 the footprint is under 3 KB of flash and 1 KB of RAM.
The repository includes guest examples in C, Zig, Rust and assembly. The author positions it as a sandbox for untrusted code and as a way to run a language whose compiler does not target the microcontroller directly.