← Back to projects

JIT Compiler for Brainfuck

A just-in-time compiler for the Brainfuck language, written entirely in assembly.

Type
Self-directed
Stack
Assembly
Theme
Low-level code generation

Overview

A self-directed project driven by an interest in low-level programming and code generation. Rather than interpret Brainfuck, the compiler emits native machine code at run time and jumps into it: a hands-on way to understand how a JIT actually works, all the way down to the instruction bytes.

What I built

A JIT that translates Brainfuck source into executable machine code in memory and runs it directly, implemented entirely in assembly, handling the language's pointer/data operations and its loop constructs as generated jumps.

Highlights

  • Full pipeline from source to emitted, executable machine code.
  • Written at the assembly level: no compiler framework or runtime.
← Back to projects