r/Compilers • • May 07 '26

I built a Custom Language, Compiler, Assembler, and RISC-V VM, all running in real in your browser, using Rust and EGUI.

Post image
377 Upvotes

I've been working on this project (and compilers / vm's in general) for a while now, and I thought it was finally proper enough to showcase. Some of the features:

  • A custom systems language designed for explicit memory control, featuring manual memory management, pointers, (inline) structs, and generics.
  • A full interactive compiler pipeline that you can watch in real-time.
  • A built-in 5-stage pipelined CPU to execute the code.
  • Compiles to actual RISC-V machine code (RV64IMAFD).
  • Visualised live in browser using EGUI.

Github: https://github.com/LPC4/Full-Stack

Check out the live demo website here: lpc4.github.io/Full-Stack/