2.Compile real programs into floating-point programs with controllable round errors
3.Self-selected related projectsAt most 3 students for each team. Each team has 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 Oct. 31, 23:59
|1||09-18||Introduction I||CPUR 1||Slides|
|09-20||Introduction II & Lexical Analysis||CPUR 1,3||Slides|
|2||09-25||Lexical Analysis||CPUR 3||Slides|
|10-04||move to 09-29|
|4||10-09||Syntax Analysis||CPUR 4||Slides1 Slides2|
|7||10-30||Intermediate Representation (IR)||Slides1 Slides2|
|8||11-06||Syntax-Directed Translation||CPUR 5||Slides|
|11-15||Semantic Analysis and Type Checking||CPUR 6.1-6.5, TypeSystems.pdf||Slides|
|11-22||Intermediate Code Generation||CPUR 6.3-6.4, 6.6-6.9||Slides|
|11||11-27||Operational Semantics||COOL manual, SA 1-3,5-6||Slides|
|11-29||Run-time Environments||CPUR 7.1-7.4||Slides|
|12||12-04||Code Generation||CPUR 8||Slides|
|12-13||Garbage Collection||CPUR 7.5-7.8||Slides|
|12-27||Control Hijacking Attack||Slides|
|16||01-01||New Year's Day|
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.