Frederik Gram Kortegaard /
Your First Compiler
A tutorial series on building a compiler from scratch in Python. We'll build a simple functional
language called YFC (Your First Compiler) that compiles to x86-64 assembly.
Code repository: github.com/frederikgramkortegaard/yfc
Table of Contents
- Introduction
- What Is a Compiler?
- Lexical Analysis
- Abstract Syntax Trees
- Building the Parser
- Extending the Language
- Taking Stock
Coming Soon
- Introduction to x86-64
- Functions and Control Flow
- Unary Operators
- Mutable Variables
- Understanding Optimizations
- Pass Manager
- Constant Folding
- Dead Code Elimination
- Profiling
- Register Allocation
Back to home