Writing a C Compiler, in Zig (2025)
Source: Hacker News
Introduction
This is a series of articles I wrote while developing paella, following Nora Sandler’s Writing a C Compiler. It served both as an exercise to learn Zig and as a way to stay productive while I am “between jobs”. The posts are collected here with only minor link fixes.
- Chapter 1: Intro
- Chapter 2: Unary
- Chapter 3: Binary
- Chapter 4: Logic
- Chapter 5: Variables
- Chapter 6: Conditions
- Chapter 7: Blocks
- Chapter 8: Loops
- Chapter 9: Functions
- Chapter 10: Linking
If/when I continue with the book, I will post the subsequent write‑ups here.