Lecture slides, demostration programs, and some of the reading material will be distributed through the class repository. Assignments and projects will be submitted through the repository as well.
Programming is the automation of information processing. Program analysis and transformation is the automation of programming itself---how much a program can understand and improve other programs. Because of the diversity and complexity of computer hardware, programmers increasingly depend on automation in compilers and other tools to deliver efficient and reliable software. This course combines fundamental principles and (hands-on) pracitical applications. Specific topics include data flow and dependence theories; static and dynamic program transformation including parallelization; memory and cache management; type checking and program verification; and performance analysis and modeling. The knowledge and practice will help students to become experts in software performance and correctness.
Course projects include the design and implementation of program analysis and improvement tools. Meets jointly with CSC 255, an undergraduate-level course whose requirement includes a subset of topics and a simpler version of the project.
List of topics:
Instructor: Chen Ding, Prof., CSB Rm 710, x51373
Lectures: Mondays and Wednesdays, 2pm-3:15pm, CSB 632
Office hours:
You may contact us using instant messaging through any Jabber IM client such as a gmail address. Connect address TBA.
Grading (total 100%)
The class repository is managed by the distributed version control system called Mercurial. If you haven't used Mercurial before, it is easy to follow one of the many on-line tutorials. The basic commands you need are as follows. Note that unlike subversion (svn), you have a copy of the repository on your local machine, and you check out from and check into the local repository.
Before you start, make sure that you have an account on cycle1.csug.rochester.edu
Create your local repository in a directory, which we use cs255repos as an example. The sequence of commands needed are
mkdir cs255repos
cd cs255repos
hg init
Create the file cs255repos/.hg/hgrc and add the following (if your repository is not on the same network as cycle1, e.g. on your laptop). Otherwise use file://u/cding/cs255hg instead of ssh addresses. If ssh is used, you will need to type in your password each time you synchronize with server repository (your local commits never require a password).
[paths]
default = ssh://[uid]@cycle1.csug.rochester.edu//u/cding/cs255hg
default-push = ssh://[uid]@cycle1.csug.rochester.edu//u/cding/cs255hg
Set up your user name by creating the file in your home directory ~/.hgrc and add the following
[ui]
username = First, Last <email>
Optimizing Compilers for Modern Architectures (UR access through books24x7), Randy Allen and Ken Kennedy, Morgan Kaufmann Publishers, 2001. Chapters 1, 2, 3, 7, 8, 9, 10, 11. lecture notes from Ken Kennedy. On-line Errata
Engineering a Compiler, Keith D. Cooper and Linda Torczon, Morgan Kaufmann Publishers. Chapters 1, 8, 9, 10 and 13. lecture notes and additional reading from Keith Cooper. On-line Errata
The Little Schemer, Daniel Friedman and Matthias Felleisen, MIT Press. Auxiliary reading. To play with lambda calculus, use the DrScheme environment.