Chapter 2: Introduction to compilers

Advantages of the model

. Also known as Analysis-Synthesis model of compilation

- Front end phases are known as analysis phases

- Back end phases are known as synthesis phases

. Each phase has a well defined work

. Each phase handles a logical activity in the process of compilation

The Analysis-Synthesis model:

The front end phases are Lexical, Syntax and Semantic analyses. These form the "analysis phase" as you can well see these all do some kind of analysis. The Back End phases are called the "synthesis phase" as they synthesize the intermediate and the target language and hence the program from the representation created by the Front End phases. The advantages are that not only can lots of code be reused, but also since the compiler is well structured - it is easy to maintain & debug.