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: 8:00 P.M. to 9:00 P.M., every Thursday Office Location: TA107
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 30th, 2024
- Project 1: Implement a simple compiler for Micro language (HW#1 2/1, Due 2/28)
- Project 2: Implement a scanner for Oat v.1 language (HW#2 2/29, Due 3/20)
- Project 3: Implement a parser for Oat v.1 language (HW#3 3/21, Due 4/10)
- Project 4: Implement a compiler frontend for Oat v.1 Language (HW#4 4/11, Due 5/1)
- Scheduled on May 7th, 2024
- Location to be determined