This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CS 143 Compilers Handout 11 Written Assignment 4 Due Tuesday, December 1, 2009 at 5pm This assignment asks you to prepare written answers to questions on code generation, operational semantics, optimization, register allocation, and garbage collection. Each of the questions has a short answer. You may discuss this assignment with other students and work on the problems together. However, your write-up should be your own individual work. Written assignments can be turned in at the start of lecture. Alternatively, assignments can be turned in at Professor Aiken’s office in Gates 411, or submitted electronically in PDF format by following the electronic submission instructions at http://www.stanford.edu/class/cs143/policies/submit.html , by 5:00 PM on the due date. 1. (4 points) Suppose that we want to add the following conditional expression to Cool. cond <p1> => <e1>; <p2> => <e2>; ... ; <pn> => <en>; dnoc There must be at least one predicate and expression pair (that is, n ≥ 1). The evaluation of a cond expression begins with the evaluation of the predicate <p1> , which must have static type...
View Full Document
This note was uploaded on 01/12/2010 for the course CS 143 at Stanford.