Login
You're viewing the techdon.dev public feed.
  • Jun 10, 2026, 5:47 PM

    If you want some way of handing a portable blob of code to a microcontroller and having it interpreted... just using RV32I is actually not unreasonable. It's got great compiler target support for mainstream languages, it's not awful to code by hand if you have to, and it's simple enough that you can write a reasonably performant emulator on the plane back from Utrecht (which I did).

    The main drawback is that code density is lower than bytecoded languages. This can be partially fixed by implementing RV32C, but rustc specifically seems pretty bad at generating small RISC-V code. In particular, it seems to be missing support for generating short jumps/calls through linker relaxation.

    But anyway, emulating RISC-V on older proprietary parts like Cortex-M or ESP32 seems potentially useful for niche cases.

    💬 0🔄 0⭐ 0