Chapter 2: Introduction to compilers

Advantages of the model .

. Compiler is retargetable

. Source and machine independent code optimization is possible.

. Optimization phase can be inserted after the front and back end phases have been developed and deployed

. Also known as Analysis-Synthesis model of compilation

Also since each phase handles a logically different phase of working of a compiler parts of the code can be reused to make new compilers. E.g., in a C compiler for Intel & Athlon the front ends will be similar. For a same language, lexical, syntax and semantic analyses are similar, code can be reused. Also in adding optimization, improving the performance of one phase should not affect the same of the other phase; this is possible to achieve in this model.