PA1: Due March 20, 2018 at 11:59pm Handin: https://q71998.cn Description, Source-code
PA2: Due April 10, 2018 at 11:59pm Handin: https://q71998.cn Description, Source-code
PA3: Due May 8, 2018 at 11:59pm Handin: https://q71998.cnDescription, Source-code
PA4: Due June 14, 2018 at 11:59pm Handin: https://q71998.cnDescription, Source-code
WA1: Assignment, Latex templete
WA2: Assignment, Latex templete
WA3: Assignment, Latex templete
WA4: Assignment, Latex templete
2.Compile real programs into floating-point programs with controllable round errors
3.Self-selected related projectsYou have to submit: (1) A report that clearly describe the background, your design thoughts, the specific realization and the testing results, (2) Source code and a user guide, and (3) A final presentation to show what you have done
Submitting proposal of your optional project, due 04-24, 23:59
|1||02-27||Introduction I||CPUR 1||Slides|
|03-01||Introduction II & Lexical Analysis||CPUR 1,3||Slides|
|2||03-06||Lexical Analysis||CPUR 3|
|03-15||Syntax Analysis||CPUR 4||Slides|
|04-05||Tomb Sweeping Day|
|7||04-10||Intermediate Representation (IR)||Slides|
|04-12||Syntax-Directed Translation||CPUR 5||Slides|
|9||04-24||Semantic Analysis and Type Checking||CPUR 6.1-6.5, TypeSystems.pdf||Slides|
|05-03||Intermediate Code Generation||CPUR 6.3-6.4, 6.6-6.9||Slides|
|05-05||Tools and Design by Youmi Ma||LLVM 3|
|05-10||Run-time Environments||CPUR 7.1-7.4||Slides||05-12||Frontend by Dinghong Li||LLVM 4|
|12||05-15||Operational Semantics||COOL manual,SA> 1-3,5-6||Slides|
|05-17||Code Generation||CPUR 8||Slides||05-19||IR by Haocong Luo||LLVM 5|
|05-24||05-26||Backend by Zhiqiang Xie||LLVM 6|
|14||05-29||Garbage Collection||CPUR 7.5-7.8||Slides|
|05-31||Optimization||Slides||06-02||JIT by Yuyang Rong||LLVM 7|
|06-07||06-09||Static Analyzer by Jianxiong Cai||LLVM 9|
|16||06-12||Control Hijacking Attack||Slides|
Note: schedule is subject to change.
This course covers the fundamentals of compiler design, including lexical analysis, parsing, semantic analysis, compile-time memory organization, run-time memory organization, code generation, and compiler portability issues.
Projects 30%+ Homework 20%+ Midterm 20% + Final 30% + Bonus 10%
We enforce academic integrity strictly. If you participate in any form of cheating, you will fail this course immediately. Examples of cheating on homework include (but are not limited to):
We never accept late homework submission in any circumstances. Since we hand out homework several weeks before its deadline, you should allocate sufficient time and allow for contigencies.
You may not post anonymously. If you do, we will delete your post without notice and will deduct from your class participation score.
We always welcome any feedback on what we could do better. You are also welcome to send us feedback anonymously if you like.