Winter 2009 Compilation Course 0368.3133

Winter 2009 Compilation Course 0368.3133



Instructor: Rina Zviel-Girshin

Assistant: Ohad Shacham

Grader:     Paz Grimberg

Forum



News


Course number Time Location
0368-3133-02 Wednesday, 11:00-12:00 Schreiber 08
0368-3133-03 Wednesday, 13:00-14:00 Schreiber 08
0368-3133-04 Wednesday, 14:00-15:00 Ornstein 110
TA office hours Wednesday, 10:00-11:00 Schreiber openspace (basement), Room #2, tel. 5358

Presentations and Related Material

Date Topic Material
T1 21/10/09 IC project introduction [Slides], [Printer Friendly], [IC Specification]
T2 28/10/09 Lexical Analysis [Slides], [Printer Friendly]
T3 11/11/09 Parsing [Slides], [Printer Friendly]
T4 18/11/09 Abstract Syntax Tree [Slides], [Printer Friendly]
T5 25/11/09 LR [Slides], [Printer Friendly]
T6 26/11/09 LR(1) [Slides], [Printer Friendly]
Semantic Analysis I [Slides], [Printer Friendly]
T7 02/12/09 Semantic Analysis II [Slides], [Printer Friendly]
T8 09/12/09 Intermediate Representation I [Slides], [Printer Friendly]
T9 16/12/09 Intermediate Representation II [Slides], [Printer Friendly]
T10 23/12/09 Intermediate Representation III + Activation Records [Slides], [Printer Friendly]
T11 30/12/09 Activation Records + Code Generation [Slides], [Printer Friendly]
T12 06/01/09 Code Generation II [Slides], [Printer Friendly]
T13 13/01/10 Recap [Slides], [Printer Friendly]
T14 20/01/10 Recap [Slides], [Printer Friendly]

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]
26/10/2009 11/11/2009
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]
11/11/2008 2/12/2008
TA1 LR Parsing
29/11/2009 20/12/2009
PA3 Semantic analysis
Output examples:
[example1.ic] [example1 output using -dump-symtab -Llibic.sig ]
[example2.ic] [example2 output using -dump-symtab]
1/12/2009 30/12/2009
PA4 Intermediate representation
Read the LIR and microLIR documentation and use the microLIR simulator to test your translation
29/12/2009 27/01/2010

Sample Exams

More exams from previous years
Another relevant link.

Tools