Compilers, Fall 2011

This course offers an introduction to the concepts and principles in modern compilers. The main topics covered in this course include: Lexical Analysis, Syntax Analysis, Code Generation, and Optimization. It's in the undergraduate program.

Course Information

Latest News

(Tentative) Schedule

Note: This schedule is tentative, and subject to change.
WeekDateContentHomework
1Sep. 13-14, 2011Course Overview
Chap. 1, Overview
2Sep. 20, 2011Chap. 2, Design of a Simple Compiler
3Sep. 27, 2011Chap. 2
Chap. 3, Theory and Practice of Scanning
4Oct. 4, 2011Chap. 3HW#1
5Oct. 11, 2011Chap. 4, Formal Grammars and Parsing
6Oct. 18, 2011 Chap. 4 Due: HW#1
HW#2
Prog#1
7Oct. 25, 2011 Chap. 5, Top-Down Parsing
8Nov. 1, 2011Chap. 6, Bottom-Up Parsing Due: HW#2
HW#3
9Nov. 8, 2011Chap. 6Due: Prog#1
10Nov. 15, 2011(Midterm Exam)Due: HW#3
11Nov. 22, 2011Chap. 6Due: Proposal
HW#4
Prog#2
12Nov. 29, 2011Chap. 6
13Dec. 6, 2011Chap. 7, Syntax-Directed CompilationDue: HW#4
Due: Prog#2
14Dec. 13, 2011Chap. 7
15Dec. 20, 2011 Chap. 8, Declaration Processing and Symbol Tables
16Dec. 27, 2011Chap. 8
Chap. 10, Intermediate Representations
17Jan. 3, 2012Term Project Presentation
18Jan. 10, 2012Term Project Presentation

Homework Assignments

Please hand in your homework in paper form or in electronic files before deadline.

  1. HW#1: Ch.1-2
    Due: Oct. 18, 2011
    (Partial) reference solutions for HW#1
  2. HW#2: Ch.3
    Due: Nov. 1, 2011
    (Partial) reference solutions for HW#2
  3. Prog#1: Lex
    Due: Nov. 8, 2011
  4. HW#3: Ch.4
    Due: Nov. 15, 2011
    (Partial) reference solutions for HW#3
  5. Prog#2: yacc
    Due: Dec. 6, 2011
  6. HW#4: Ch.5-6
    Due: Dec. 6, 2011

Project

  1. Term Project

Exams

  1. Midterm Exam: Nov. 7-11, 2011.

  2. Final Exam: Jan. 9-13, 2012.
    There will be no final exam for the course. Instead, you have to present for the term projects.

Score


E-mail: jhwang AT csie DOT ntut DOT edu DOT tw
Created: Sep. 6, 2011.
Last Updated: Jan. 14, 2012.