Syllabus for Compiler (CS340402)

 

Instructor :Yeh-Ching Chung

Office : CSEE635

Phone: Ext. 42971

Goals : Familiar with compilers and their component design

Textbooks :

1.  Crafting a Compiler with C', C. Fisher an R. Leblanc, 1991.

References:

               1. Compilers, Principles, Techniques, and Tools, A. Aho, R. Sethi, J. Ullmman, Addisin-Wesley.
               2. Compiler Design in C, by Allen I. Holub, Prentice Hall, 1990.

 

Contents:

-     Introduction (ch1)

-     A Simple Compiler (ch2)

-     Scanning - Theory and Practive (ch3, Lex)

-     Grammar and Parsing (ch4, First_Follow_Set)

-     Top-Down Parsing (ch5)  

-     Bottom-Up Parsing (ch6-1, ch6-2, ch6-3, Yacc)

-     Semantic Processing (ch7)

-     Symbol Table (ch8)

-     Run-time Storage Organization (ch9)

-     Declaration Processing (ch10)

-     Processing Expressions and Data Structure References (ch11)

-     Translating Control Structures (ch12)

-     Translating Procedures and Functions (ch13)

-     Code Generation and Local Code Optimization (ch14)
 

Grading:

               1. Programs: 40%

-     Assignment 1: Micro Language Compiler

-     Assignment 2: Lex for C

-     Assignment 3: Yacc for C Grammar   

-     Assignment 4: Code generator for Micro Language

               2. Mid-term Exam.: 20%

               3. Final Exam: 30%

               4. Quiz & Participation: 10%

        

TAs : 高崇閩、張雅婷 (Complex Build II Room719)

Web: https://sites.google.com/a/sslab.cs.nthu.edu.tw/compiler/home

 

Last modified: 2012/05/09 09:08:19