Fall 2018 - CMPT 379 D100

Principles of Compiler Design (3)

Class Number: 8455

Delivery Method: In Person

Overview

  • Course Times + Location:

    Sep 4 – Dec 3, 2018: Mon, Wed, Fri, 12:30–1:20 p.m.
    Surrey

  • Exam Times + Location:

    Dec 13, 2018
    Thu, 8:30–11:30 a.m.
    Surrey

  • Instructor:

    Apala Guha
    aguha@sfu.ca
    778-782-7585
    Office: SUR 4142
  • Prerequisites:

    MACM 201, (CMPT 150, CMPT 295 or ENSC 215) and CMPT 225.

Description

CALENDAR DESCRIPTION:

This course covers the key components of a compiler for a high level programming language. Topics include lexical analysis, parsing, type checking, code generation and optimization. Students will work in teams to design and implement an actual compiler making use of tools such as lex and yacc.

COURSE DETAILS:

This course covers the theoretical foundations as well as practical techniques for the construction of a compiler for a high-level programming language. Topics include lexical analysis, parsing, type checking, code generation and optimization. Students will implement an actual compiler for a high-level programming language.

COURSE-LEVEL EDUCATIONAL GOALS:

- Formal language definitions
- Lexical analysis
- Context free grammars and parse trees
- Top-down parsing
- Bottom-up parsing
- Type checking
- Intermediate code generation
- Target code generation
- Control flow graphs, dataflow analysis example e.g. reachability analysis
- Constant propagation, dead code elimination etc.
- Register allocation

Grading

  • The grade distribution will be handed out at the start of classes.

REQUIREMENTS:

Students must attain an overall passing grade on the weighted average of exams in the course in order to obtain a clear pass (C- or better).

Materials

MATERIALS + SUPPLIES:

Suggested Reference Books:

Compilers: Principles, Techniques and Tools 2/e, A.V. Aho, M.S. Lam, R. Sethi, J.D. Ullman, Addison Wesley, 2007, 9780321486813
Programming Language Pragmatics 4/e, M.L. Scott, Morgan Kaufman, 2015, 9780124104099

REQUIRED READING:

Engineering A Compiler 2/e, Cooper, Torczon, Morgan Kaufman, 2011
ISBN: 9780120884780

Registrar Notes:

SFU’s Academic Integrity web site http://students.sfu.ca/academicintegrity.html is filled with information on what is meant by academic dishonesty, where you can find resources to help with your studies and the consequences of cheating.  Check out the site for more information and videos that help explain the issues in plain English.

Each student is responsible for his or her conduct as it affects the University community.  Academic dishonesty, in whatever form, is ultimately destructive of the values of the University. Furthermore, it is unfair and discouraging to the majority of students who pursue their studies honestly. Scholarly integrity is required of all members of the University. http://www.sfu.ca/policies/gazette/student/s10-01.html

ACADEMIC INTEGRITY: YOUR WORK, YOUR SUCCESS