Back to browse
GitHub Repository

Minimalist, dependency-free virtual machine sandbox for microcontrollers and other resource-constrained devices. Single C file, no dynamic memory allocations, asynchronous design, pure C99

666 starsC

I've Added Gdbstub to UVM32

by hamid_rostami·Apr 16, 2026·1 point·0 comments

AI Analysis

●●SolidNiche GemWizardry

GDB stub on a 3KB embedded VM — debug bytecode on STM32 without leaving your workflow.

Strengths
  • Single C file with zero dynamic allocations fits microcontrollers under 3KB flash
  • GDB remote serial protocol enables standard debugging workflows on embedded targets
  • Safe FFI prevents misbehaving bytecode from crashing the host system
Weaknesses
  • Extremely niche audience — only matters if you're already embedding VMs in firmware
  • Compile-run cycle for VM code adds friction compared to interpreted scripting languages
Target Audience

Embedded developers, firmware engineers, microcontroller programmers

Similar To

Lua · MicroPython · Duktape

Post Description

uvm32 is a risc-v small virtual machine. I've added gdbstub support to it. Using GDB remote serial protocol connection, a gdb instance can connect to the host and debug the code running on the emulated core.

Similar Projects