Compilers
Table of contents
Introduction
A compiler takes a program as input and produces an executable (e.g., assembly code code or bytecode).
A compiler generally has five phases:
- Lexical analysis
- Parsing
- Semantic analysis (e.g., types and scope rules)
- Optimization
- Code generation (translation)
These notes cover the five phases.