Syllabus for Compiler Construction (CSC4180)

¡@

Instructor : 钟叶«C (Yeh-Ching Chung)

Office : Room 515, Dao Yuan Building

Phone. 0755-23519576 (Office)

            185-7673-9791 (Mobile)

WeChat Group :  CSC4180 Spring 2024

Office Hours: Tuesday 9:00 - 10:00

                       Thursday 9:00 - 10:00

Goals : Familiar with compilers and their component design

Textbooks :

1.  Crafting a Compiler with C, C. Fisher and R. Leblanc, 1991 (PDF)

2. Crafting a Compiler, C. Fisher, Ron K. Cytron, and R. Leblanc, 2010 (PDF)

Reference:

               1. Compilers, Principles, Techniques, and Tools, A. Aho, R. Sethi, J. Ullmman, 2007 (PDF)

               2. Lex (PDF)

               3. Yacc (PDF)

Contents:

-     Introduction (slides-0, slides-1)

-     A Simple Compiler (slides-2)

-     Scanning - Theory and Practice (slides-3)

-     Grammar and Parsing (slides-4, First_Follow_Set)

-     Top-Down Parsing (slides-5)  

-     Bottom-Up Parsing (slides-6-1, slides-6-2, slides-6-3)

-     Syntax-Directed Translation (slides-7)

-     Symbol Table and Declaration Processing (slides-8)

-     Semantics Analysis (slides-9)

-     Code Generation (slides-10-1, slides-10-2)

Grading:

               1. Class Participation: 5% (4/30 Roll Call)

               2. Programs: 70%

            ¡V Design a simple compiler for Micro language (HW#1 1/25, Due 2/28)

            ¡V Design a scanner for a simplified C language (HW#2 2/29, Due 3/20)

            ¡V Design a parser for a simplified C language (HW#3 3/21, Due 4/10)

            ¡V Design a simplified C Compiler (HW#4 4/11, Due 5/1)

               3. Final Exam: 25% (5/7)

¡@

TAs :   刘¦t轩

¡@

Last modified: 2024/04/11 04:52:02