COMPILERS

Exit

Question 1 of 1

  Time Left


0
202919
0
120
block

Stages of compilation

Match the text (click and drag)   

(0/0)




Match the text

Pre-processing

Lexical analysis

Parsing

Parse tree optimisation

Intermediate code generation

Code optimisation

Target code generation

Click and drag

builds parse tree that describes grammatical structure of source code, exception handling. If parse is not correct then give a helpful error message.

make code fast or small. (Conflicting goals - can't be small and fast, one or the other)

generic language that suits many processors machine codes.

binary, machine code for some processors.

prune redundant parts of tree. Move sub-trees within parse-tree to make code more efficient.

converts sequence of characters in source file to tokens. Parsing decision can be made quickly by lookup on a number(the token) and not a string.

remove bracketed comments, include headers; supports re-use and modularisation of code, expand macros; increases portability, set compiler directives to condition how compiler works.


202920
0
120
none
202923
0
120
none
203179
0
120
none
202928
0
120
none
202934
0
120
none
202939
0
120
none
203195
0
120
none
202940
0
120
none
202945
0
120
none
203214
0
120
none
203215
0
120
none
203216
0
120
none
203217
0
120
none
203218
0
120
none