minic is a small C-compiler project inspired by chibicc and acwj.
minic has the following compilation stages:
- Parse: Break the file into tokens and create an abstract syntax tree (AST).
- Analyze: Resolve variable and function names, check types, and evaluate expressions like
sizeof
. - Code generation: Generate NASM-compatible assembly targeting x86_64 architecture.