50.054 Compiler Design and Program Analysis

Home / Education / Undergraduate / Courses / 50.054 Compiler Design and Program Analysis

Course Description

This course aims to introduce a new programming paradigm to the learners, Functional programming and the suite of advanced language features and design patterns for software design and development. By building on top of these techniques, the course curates the process of designing a modern compiler, through syntax analysis, intermediate representation construction, semantic analysis and code generation. More specifically the course focuses on the application of program analysis in areas of software verification, program optimization and software security analysis.

Pre-requisite

50.004 Algorithms

Learning Objectives

  • Implement software solutions using functional programming language and applying design patterns
  • Define the essential components in a program compilation pipeline
  • Design a compiler for an imperative programming language
  • Optimise the generated machine codes by applying program analysis techniques
  • Detect bugs and security flaws in software by applying program analysis techniques

Measurable Outcomes

  • Develop a parser for an imperative programming language with assignment, if-else and loop (AKA the source language) using Functional Programming
  • Implement a type checker for the source language
  • Develop a static analyser to eliminate dead codes
  • Implement the register allocation algorithm in the target code generation module
  • Develop a static analyser to identify potential security flaws in the source language

Recommended Texts and Readings

  • Compilers: Principles, Techniques, and Tools is a computer science textbook by Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman
  • Modern Compiler Implementation in ML by Andrew W. Appel
  • Static Program Analysis by Anders Møller and Michael I. Schwartzbach

Course Instructors

Prof Kenny Lu

Image Credit