exam1-key - ECE 468 Midterm 1 September 30, 2010 Name: _...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 468 — Midterm 1 September 30, 2010 Name: ______________________________________ Purdue email: ______________________________________ Please sign the following: I afFrm that the answers given on this test are mine and mine alone. I did not receive help from any person or material (other than those explicitly allowed). X ___________________________________________ Part Points Score 1 8 2 20 3 10 4 22 5 40 Total 100
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Part 1: Short answers (8 points) 1) Explain (in at most 30 words) why it is useful to split the phases of a compiler into a front end and a back end (2 points) Splitting the front and back ends allow us to reuse the front end with different backends (for different ISAs) or reuse the back end with different front ends (for different languages) 2) Give an example of an English sentence that is syntactically correct but not semantically correct. (1 point) Colorless green ideas sleep furiously, or many other options. 3) BrieFy explain (it shouldn ʼ t take you more than two sentences) why the following grammar is not LL(k) for any k (3 points) S E $ E int E (E + E) E (E – E) To decide between (3) and (4), we need to know if a
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2012 for the course ECE 468 taught by Professor Test during the Fall '08 term at Purdue University-West Lafayette.

Page1 / 6

exam1-key - ECE 468 Midterm 1 September 30, 2010 Name: _...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online