Docsity

Compiler Course Document: Lectures, Tests, Assignments, and Refresher, Slides of Compilers

Partial preview of the text

Download Compiler Course Document: Lectures, Tests, Assignments, and Refresher and more Slides Compilers in PDF only on Docsity!

Compilers – The

Sequel

Outline

 (^) Lectures  (^) Monday - Friday  (^) 3 weeks  (^) Tests  (^) 26 August (probably 1/3 of Compilers)  (^) 9 October (maybe last 2/3 of Compilers)  (^) Assignments  (^) Assignment 4: due 28 August  (^) Assignment 5: due 4 September  (^) Assignment 6: due 18 September

Refresher-in-one-slide

 How does a compiler work?

 Lexical analysis – divide program into symbols  Parsing – create tree form of program  Check data types  Determine variables in each section  Transform code to fictitious (IR) machine code  Optimise IR code  Transform IR code to real machine code  Optimise register usage