15-745 Syllabus

Textbook

Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman.
Compilers: Principles, Techniques, and Tools (2nd Edition).
Pearson Addison Wesley, 2006. ISBN: 978-0321486814.
(Note: It is important to use the 2nd Edition, rather than an earlier edition.)

This is a graduate-level course. If you need to brush up on the material covered in undergraduate-level compiler courses, please review the earlier chapters of this book and take a peek at the CMU undergrad compilers course: 15-411.

Grading

Your final grade for the course will be based on the following weights:

The project in 15-745 is an open-ended research project, done in groups of two (or three, with special permission). The project requires a proposal report, a milestone report, a final report, and a poster presentation.

Schedule

Also available as an ical file that you can subscribe to.

Note: Class will meet on average two times per week, but we will frontload the lectures at the begining of the semester. This schedule is subject to change, so please hold all three days (Mon, Wed, Fri) open each week.

Date Topic Assignments Reading
Wed 01/17 Overview of Optimizations; Course Overview
[pdf]
ALSU 9.1
Fri 01/19 The LLVM Compiler: Getting Started
[pdf]
Assignment 1 out llvm.org/docs
Mon 01/22 Local Optimizations; Intro to SSA
[pdf]
ALSU 8.4-8.5, 6.2.4
Wed 01/24 The LLVM Compiler: Further Details
llvm.org/docs
Fri 01/26 Data Flow Analysis: Examples
ALSU 9.2
Mon 01/29 Data Flow Analysis: Theory
ALSU 9.3
Wed 01/31 Common Subexpressions; Constant Folding
Assignment 2 out ALSU 9.2.6, 9.4
Fri 02/02 Induction Variable Optimizations
ALSU 9.1.8, 9.6, 9.8.1
Mon 02/05 Loop Invariant Code Motion
Assignment 1 due ALSU 9.5-9.5.2
Wed 02/07 Lazy Code Motion
ALSU 9.5.3-9.5.5
Fri 02/09 Static Single Assignment (SSA)
ALSU 6.2.4
Mon 02/12 Register Allocation
Assignment 2 Homework problems due ALSU 8.8
Wed 02/14 Register Allocation: Coalescing
Fri 02/16 Discussion of Assignment 1 and 2 homework problems
Mon 02/19 No class
Wed 02/21 Pointer Analysis
Rest of Assignment 2 due; Assignment 3 out ALSU 12.4, 12.6-12.7
Fri 02/23 Memory Hierarchy Optimizations
ALSU 7.4.2-7.4.3, 11.2-11.5
Mon 02/26 Dynamic Code Optimization
Whaley, OOPSLA 2001
Wed 02/28 Guest lecture - Brian Railing on Compiler-based Instrumentation
Fri 03/02 Recent Research on Optimization I
Handouts
Mon 03/05 Recent Research on Optimization II
Handouts
Wed 03/07 Recent Research on Optimization III
Handouts
Fri 03/09 No class - Mid-Semester break
Assignment 3 Homework problems due
Mon 03/12 No class - Spring break
Wed 03/14 No class - Spring break
Fri 03/16 No class - Spring break
Mon 03/19 Instruction Scheduling - part 1
Rest of Assignment 3 due ALSU 10.1-10.3
Wed 03/21 No class - Day of meetings to discuss Project Proposal ideas
Fri 03/23 Instruction Scheduling - part 2; Discussion of Assignment 3
ALSU 10.4-10.5
Mon 03/26 Project Proposal
Proposal Report due before midnight tonight
Wed 03/28 Array Dependence Analysis; Parallelization
ALSU 11.6
Fri 03/30 Prefetching
ALSU 11.11.4
Mon 04/02 Region-Based Analysis
ALSU 9.7
Wed 04/04 Research Topic TBD
Fri 04/06 No class
Mon 04/09 Research Topic TBD
Wed 04/11 No class
Fri 04/13 Project Milestone
Milestone Report due before midnight tonight
Mon 04/16 No class
Wed 04/18 Exam
Closed book, closed notes
Fri 04/20 No class - Spring Carnival
Mon 04/23 No class
Wed 04/25 No class
Fri 04/27 No class
Mon 04/30 No class
Wed 05/02 No class
Fri 05/04 Project Poster Session
Project posters due at class time
Tue 05/08 Project Final Report
Final Report due before midnight tonight

Last updated: 2018-01-22 00:05:35 -0500 [validate xhtml]