CS243: Program Analysis and Optimization Winter 2015
This page is updated frequently, so check back often. All materials for the course will be posted here.
Important #1:Click to sign up for this class on Piazza!
Important #2:Click to register with Gradiance with class token 548ED169.
What do we teach?
This course teaches program analysis techniques used in compilers and
software development tools to improve productivity, reliability, and
security. Emphasis on the methodology of applying mathematical
abstractions such as graphs, fixpoint computations and binary decision
diagrams to writing complex software, using compilers as an example.
How do you learn this?
This is a course where math and programming meet. Learning compiler techniques has
much in common with learning mathematical proofs. You learn by trying,
finding your own insights. This means the assignments can take a variable amount of time!
We want you to formulate your own
variations of problems and solve them.
How is the course structured?
Highly interactive lectures, textbook reading.
Programming assignments analyze Java code.
Problem sessions for discussion.
Piazza for offline questions.
Midterm and Final.
Logistics When, where, what and how
Mondays and Wednesdays 11:00am - 12:15pm in Gates B03
CS 103 or CS 103B, and CS 107; Java programming language experience
Compilers: Principles, Techniques, & Tools (Second Edition), Alfred V. Aho, Monica S. Lam, Ravi Sethi, Jeffrey D. Ullman, Addison-Wesley, 2007.
All questions related to the
material should go to Piazza. Using
Piazza for questions should significantly decrease the average response time,
since there are more instructor/TAs and students there to see the question. If
another student can answer the question, that will help them learn, too.
Administrative questions should all go to
Please do not email individual staff members.
Lab Extra Credit
up to 10% (applied after curve)
Staff Professor and TA details
IMPORTANT Contact us using the
for administrative questions.
Monica Lam, Instructor
By arrangement via
Darlene Hadding, Admin
How are office hours structured?
The TAs each hold office hours twice a week. The instructor holds office hours by arrangement via email.
SCPD students Join the Google Hangout during office hours (link posted on Piazza).
Problem Sessions Friday 9:00am - 9:50am at Gates B01
Section on Homework 2
Handouts and Graded Assignments What happens with physical materials
CS243 will be using the Gradiance automated homework system for some of
the required work. You should open your free account at
and then sign up for the class using the "class token" 548ED169.
Gradiance looks like multiple-choice questions, but it is really quite
different. You are given problems to work out, just as you would in an
ordinary homework. You are then given a multiple-choice question to
test whether or not you have the correct solution. If you get a choice
wrong, you are given a hint and encouraged to try again. You are
allowed to try as many times as you like, and the goal is to get
everything right eventually. To avoid repeated guessing on one problem
at a time, you need to repeat all the questions each time you submit,
and you will be given a different set of choices each time.
SCPD students: Please
download the lecture notes before the lecture; the material will be
available by the morning of the lecture. Your assignments will be
returned via the SCPD courier. Since all the material for the
assignments will be available on the web, you have to give your
assignments to the SPCD courier (or hand it in electronically) on the
same day as everybody else.
Homework will consist of both written and
programming assignments. You are encouraged to work on the programming
assignments in groups of two, but you must do the written assignments
In general, no late assignments are accepted.
However, you have two grace days for the entire quarter. That means
you can be late by one day for two assignments, or use the two days up
for one assignment.
Programming assignments will have specific submission instructions
included with the handouts. We will use a certain amount of
automatic grading to help us deal with the massive amounts of code
everyone submits, so please follow the submission instructions
exactly as written!
Some of the written homework should be submitted via Gradiance, as
described above. If you have any issues accessing the
Gradiance site, please contact the TAs.
You are free to discuss the assignment and solutions with others.
However, you must write your own assignment, and must not represent
any portion of others' work as your own. Anybody violating the honor
code will be referred to the Judical-Affairs Office. If convicted, the
normal penalty is a quarter suspension or worse.