Hello everyone, welcome to take the course CSC4180: Compiler Construction offered by The Chinese University of Hong Kong, Shenzhen (CUHK-SZ). In this course, you are going to learn the fundamental basics of compiler and get a hands-on exercise implementing your compiler for both the Micro language and the simple C language grammar. This course mainly covers the compiler frontend and only gives a very brief introduction to the backend. To keep our course content up-to-date, LLVM is introduced and you need to build the frontend that finally generates LLVM IR, and then use the LLVM backend to do the optimization and code generation.
Email: [email protected] Office Hour: 7:00 P.M. to 8:00 P.M., every Thursday Office Location: TD409 Seat.08
The first four are called compiler front-end, while the last two are called compiler back-end.
- Scanning (Lexical Analysis)
- Parsing (Syntactic Analysis)
- Semantic Analysis
- Intermediate Code Generation
- Optimization
- Code Generation
- Roll Call in Lecture on April 29th, 2025
- Project 1: Implement a simple compiler for Micro language (HW#1 2/11, Due 2/24)
- Project 2: Implement a scanner for Oat v.1 language (HW#2 2/25, Due 3/17)
- Project 3: Implement a parser for Oat v.1 language (HW#3 3/18, Due 4/7)
- Project 4: Implement a compiler frontend for Oat v.1 Language (HW#4 4/8, Due 4/28)
- Scheduled on May 6th, 2025
- Location to be determined