CS 164: Lecture Notes and Readings

Spring, 2015

Please try to avoid printing lecture notes on printers in the lab. The "2x2" versions below are condensed for efficient printing.

In general, try to complete the "Readings" for a given lecture before the lecture.

Lecture revisions in progress throughout the semester.


Lecture Date Subject Slides Readings
#1 Wed, 21 Jan Course Introduction pdf,   2x2 pdf -
#2 Fri, 23 Jan Lexical analysis, regular expressions pdf,   2x2 pdf,
Programs
Notes §2.1–2.5;
Flex manual (as needed)
#3 Mon, 26 Jan Continuation of lecture 2 - -
#4 Wed, 28 Jan FSAs pdf,   2x2 pdf Notes §2.6–2.9
#5 Fri, 30 Jan FSAs - Notes §2.6–2.9
#6 Mon, 2 Feb Parsing: Grammars, Derivations, Syntax-Directed Translation pdf,   2x2 pdf,
Calc example
Notes §3.1–3.7
#7 Wed, 4 Feb Parsing: Top-Down parsers pdf,   2x2 pdf Notes §3.8
#8 Fri, 6 Feb Top-Down parsers, contd. - -
#9 Mon, 9 Feb Parsing: General and Bottom-Up Parsing pdf,   2x2 pdf Notes §3.9
#10 Wed, 11 Feb General Parsing, contd. - -
#11 Fri, 13 Feb General Parsing, contd.; Project 1 - -
#12 Wed, 18 Feb Deterministic Bottom-up Parsing (LR) pdf,   2x2 pdf Notes §3.10
#13 Fri, 20 Feb LR parsing, contd. - -
#14 Mon, 23 Feb LR parsing, using ambiguity, debugging grammars pdf,   2x2 pdf, Examples of Bison diagnostic output -
#15 Wed, 25 Feb Bison examples, contd. - -
#16 Fri, 27 Feb Static Semantics: Overview pdf,   2x2 pdf -
#17 Mon, 2 Mar Types pdf,   2x2 pdf,
Prolog examples
-
#18 Wed, 4 Mar Types, contd. - -
#19 Fri, 6 Mar Types, contd. - -
#20 Mon, 9 Mar Review - -
#21 Wed, 11 Mar Test #1 (in class) - -
#22 Fri, 13 Mar Types, contd. - -
#23 Mon, 16 Mar Type Inference pdf,   2x2 pdf -
#24 Wed, 18 Mar Type Inference, contd. - -
#25 Fri, 20 Mar Project-related Scoping example -
#26 Mon, 30 Mar Run-time Organization pdf,   2x2 pdf -
#27 Wed, 1 Apr Run-time Organization, contd. - -
#28 Fri, 3 Apr Function representation - -
#29 Mon, 6 Apr Exceptions, OOP pdf,   2x2 pdf -
#30 Wed, 8 Apr Exceptions, OOP, contd. - -
#31 Fri, 10 Apr Exceptions, OOP, contd. - -
#32 Mon, 13 Apr Exceptions, OOP, contd. - -
#33 Wed, 15 Apr Test #2 (in class) - -
#34 Fri, 17 Apr Code generation pdf,   2x3 pdf,   ppt -
#35 Mon, 20 Apr Code Generation, Calls, Parameters pdf,   2x2 pdf -
#36 Wed, 22 Apr Code Generation: Arrays pdf,   2x2 pdf -
#37 Fri, 24 Apr Local optimization pdf,   2x2 pdf -
#38 Mon, 27 Apr Global optimization - -
#39 Wed, 29 Apr Global Register Allocation pdf,   2x2 pdf -
#40 Fri, 1 May Summary, HKN Survey pdf,   2x2 pdf -

Page was last modified on Thu Apr 30 21:26:21 2015.
Address comments and questions to cs164@eecs.berkeley.edu