Site icon i2tutorials

Compiler Design-Compiler Architecture

Compiler Architecture

 

The architecture of a compiler is divided into two phases based on how they work and how they compile a code.

 

Analysis Phase

The analysis phase is also called the front-end of a compiler. In this phase, the source program is read and divided into core parts and checked for lexical grammar and syntax errors. It gives an intermediate representation of the symbol table and the source code. 

 

Synthesis Phase

The synthesis phase is also called the back-end of the compiler, the intermediate source code is given as the input to the synthesis phase which generates the target program 

A compiler has several phases and passes.

 

Reference Link

Compiler Architecture

Exit mobile version