Mechanics mechanics c parts cinto two main ourse ml

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C = 0; int nPos ourse Course Mechanics! Mechanics int k = L;! M 0 Variable Bindings ML Variable Bindings while (k < length) {! if (a[k] > 0) {! nPos++;Dan Grossman Dan Grossman ! Fall 2011 }! Fall 2011 }! •  The computer only knows 1’s & 0’s •  Using a compiler (and/or an interpreter) –  We’ll discuss the differences in a few slides Winter 2013 UW CSE 401 (Michael Ringenburg) A-18 Structure of a Compiler CSE341: Programming CSE341: Programming Languages Languages •  At a high level, compilers have two pieces: Lecture 1 Lecture 1 code –  Front end: read source Course Course Mechanics Mechanics •  Parse the source, understand its sBindings ML Variable tructure ML Variable Bindings –  Back end: write executable •  Dan Grossman Dquivalent target language program. May an Grossman Generate e Fall 2011 Fall 2011ode, but must not change behavior. op7mize (improve) c Source Winter 2013 Front End Back End UW CSE 401 (Michael Ringenburg) Target A-19 Compiler must… SE341: Programming CSE341:egal Crograms (Languages about illegal Programming...
View Full Document

Ask a homework question - tutors are online