Winter 2008 Compilation Course 0368.3133

Winter 2008 Compilation Course 0368.3133



Instructor: Ran Shaham

Assistant: Ohad Shacham

Grader:     Paz Grimberg

Forum



News


Course number Time Location
0368-3133-02 Wednesday, 10:00-11:00 Shankar (Physics) 104
0368-3133-03 Wednesday, 14:00-15:00 Schreiber 07
0368-3133-04 Wednesday, 15:00-16:00 Schreiber 07
TA office hours Wednesday, 16:00-17:00 Schreiber openspace (basement), Room #2, tel. 5358

Presentations and Related Material

Date Topic Material
T1 05/11/08 IC project introduction [Slides], [Printer Friendly], [IC Specification]
T2 12/11/08 Lexical Analysis [Slides], [Printer Friendly]
T3 19/11/08 Parsing I [Slides], [Printer Friendly]
T4 26/11/08 Parsing II [Slides], [Printer Friendly]
T5 03/12/08 Abstract Syntax Tree [Slides], [Printer Friendly], [SLP]
T6 10/12/08 LR(0) [Slides], [Printer Friendly]
T7 17/12/08 Semantic Analysis I [Slides], [Printer Friendly]
T8 24/12/08 Semantic Analysis II [Slides], [Printer Friendly]
T9 31/12/08 Intermediate Representation I [Slides], [Printer Friendly]
T10 07/01/09 Intermediate Representation II [Slides], [Printer Friendly]
T11 14/01/09 Intermediate Representation III + Activation Records [Slides], [Printer Friendly]
T12 21/01/09 Code Generation I [Slides], [Printer Friendly]
T13 28/01/09 Code Generation II [Slides], [Printer Friendly]
T14 22/02/09 Recap [Slides], [Printer Friendly], [White Background]

Program Assignments

Assignment Published Due
PA1 Lexical analysis
Install JFlex, JavaCup and use the code skeleton
The directory structure for the submission is shown here
Installation instructions can be found here
Examples
[Quicksort.ic] [Quicksort.tokens.txt]
[Sieve.ic] [Sieve.tokens.txt]
[Quicksort_bad.ic] [Quicksort_bad.tokens.txt]
17/11/2008 1/12/2008
PA2 Syntax analysis and AST construction
The directory structure for the submission is shown here
We recommend to use the given Skeleton and look at SLP before starting the PA
[libic.sig] [Quicksort AST example]
1/12/2008 29/12/2008
TA1 Parsing
15/12/2008 12/01/2009
PA3 Semantic analysis
Output examples:
[example1.ic] [example1 output using -dump-symtab -Llibic.sig ]
[example2.ic] [example2 output using -dump-symtab]
29/12/2008 22/1/2009
PA4 Intermediate representation
Read the LIR and microLIR documentation and use the microLIR simulator to test your translation
19/01/2009 20/03/2009

Tools