CS451/651
Compilers
Home
Course Info
Calendar
Lecture Material
Assignments
Resources
Swami Iyer
·
CS
·
UMB
Lecture Material
Course Mechanics
(
slides
)
Programming Environment
(
slides
)
Chapter 1: Compilation
Preliminaries (
slides
)
Overview of
j--
to JVM Compiler (
slides
)
Overview of
iota
to Marvin Compiler (
slides
)
Chapter 2: Scanning
Preliminaries (
slides
)
Handcrafting a Scanner (
slides
)
Generating a Scanner (
slides
)
JavaCC Scanner for
j--
(
slides
)
Chapter 3: Parsing
Preliminaries (
slides
)
Top-down Recursive Descent Algorithm (
slides
)
Top-down LL(1) Algorithm (
slides
)
Bottom-up LR(1) Algorithm (
slides
)
JavaCC Parser for
j--
(
slides
)
Chapter 4: Type Checking
Preliminaries (
slides
)
Pre-analysis of
j--
Programs (
slides
)
Analysis of
j--
Programs (
slides
)
Chapter 5: JVM Code Generation
Preliminaries (
slides
)
Classes and their Members (
slides
)
Control, Message, Field Selection, and Array Access Expressions (
slides
)
Assignment, String Concatenation, Cast, and Other Operations (
slides
)
Chapter 6: Marvin Code Generation
Preliminaries (
slides
)
High-level Intermediate Representation (HIR) (
slides
)
Low-level Intermediate Representation (LIR) (
slides
)
Register Allocation (
slides
)