5

Click here to load reader

Translators

Embed Size (px)

Citation preview

Page 1: Translators

Programmingtitle in jotter

Interpreter CompilerMachine Code

Page 2: Translators

Here is a program

• Does the Computer understand this?

Page 3: Translators

So it can understand

• Computer Understands Machine Code• Two methods of translation• Interpreter• Translate a line at a time• Think of a real translator• Slower, but better for debugging • More demands on memory as

constantly running

Page 4: Translators

So it can understand

• Compiler• Faster as it translates and

executes full program at once• Returns error file so harder to

debug• Once compiled properly doesn’t

need to be recompiled

Page 5: Translators

High Level Languages

• We write programs in HLL• These are Portable as they can be

run on different computer platforms• They are written in an English like

language so they are easier to understand

• They have to be translated before being executed (Source Code to Object Code)