Highlights
What I built
- Recursive-descent parser supporting nested unary expressions.
- Custom IR lowered into stack-backed assembly with fixup passes.
- Incremental tests from return literals to structured control flow.
OCaml compiler pipeline from C source to x86-64 assembly.
As I gained a deeper interest in understanding lower level systems, I realized that I never understood the basis behind compilers, the actual foundation of programming. Thus, I researched what I could about compilers, and I stumbled upon Nora Sandler's book on writing compilers. Here, I learnt the principles behind developing a compiler starting with a real lexer -> parser -> IR -> codegen pipeline where I could inspect every stage. One cool thing is that the book didn't spoonfeed me the code; rather, it gave the foundations, which I had to apply to the best of my ability.
Project notes
Highlights
Architecture
Challenges
Lessons
Stack / materials
Media timeline
Build photos, clips, and process visuals. The goal is to show how the project evolved, not just the final screenshot.