Writing a C Compiler, in Zig (2025)

A comprehensive series documenting the creation of 'paella', a C compiler built with Zig following Nora Sandler's curriculum, covering everything from basic unary operators to complex linking.
This is a series of articles I wrote while writing paella, following Nora Sandler's Writing a C Compiler. It was both an exercise to learn Zig and a way to waste time instead of looking for work, as I am currently "between jobs". I did not edit them as I collect them here outside of fixing some broken links.
- 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 shall post the following writeups here.
Source: Hacker News















