← board

Demo — bytecode VM + assembler (small ISA)

Goal

Define a small (~20-opcode) stack bytecode ISA, a text assembler (mnemonics → bytes), and a VM that executes it. Not a real language frontend — a self-contained machine.

Surface / shape

Coverage

enums (opcodes) · records · static + dynamic arrays (stack / memory / program) · procedural types (dispatch table) · Int64 · managed strings (assembler) · recursion (call/ret). Self-hosting flavor — mirrors the real compiler's spirit.

Acceptance / oracle

Constraints

Platonic source, assumes idiomatic RTL; no compiler changes; ESP32-fit (integer-only). No self-host / cross regression once wired into the harness.

Log