國立清華大學資訊科學系
CS 3404 ─ 編譯器設計
87學年度下學期
課程簡介

授課老師:

金仲達

 

辦公室:資電館 443室

 

電話分機:2804

 

Email: king@cs.nthu.edu.tw

上課時間:

星期一 10:10 -- 12:00

 

星期三 9:10 -- 10:00

上課地點:

資電館127室

課程首頁:

http://www.cs.nthu.edu.tw/~king/courses/cs3404.html

內容簡介:

This course studies the theory and implementation of syntax-directed compilers for Pascal-like programming languages. Topics covered are described in Course Outline. Special emphasis will be placed on automating various aspects of compiler construction using available tools. A number of program assignments are to be completed in the semester, including one implementing a subset of a compiler. The philosophy of learning compilers (as well as many other things) is learning by doing. By the nature of this course, you will be expecting a heavy workload.

先修課程:

Unix, C, Data Structure, System Programming

教科書:

C. N. Fischer and R. J. LeBlanc, Jr., Crafting a Compiler with C, Benjamin/Cummings, 1991.

參考書:

A. V. Aho, R. Sethi and J. D. Ullman, Compilers: Principles, Techniques, and Tools, Addison-Wesley, 1985.

課程大綱:

Introduction

Ch. 1

Overview of syntax-directed translation

Ch. 2

Lexical analysis

Ch. 3

Grammars and parsing

Ch. 4

LL(1) grammars and parsers

Ch. 5

LR Parsing

Ch. 6

Semantic processing: fundamentals

Sec. 7.1--7.3

Symbol tables

Sec. 8.1--8.4

Run-time storage organization

Sec. 9.1--9.4

Semantic processing: study a simple compiler

Code Generation and optimization

Sec. 15.1--15.7, 16.1

計分方法:

作業

45%

期中考

25%

期末考

25%

Class participation

5%

注意事項: