Two Main Phases (Analysis and Synthesis) Analysis Phase :-Breaks up a source program into constituent pieces and produces an internal representation of it called intermediate code. Synthesis Phase :-translates the intermediate code into the target program. During this lecture we shall focus on the analysis phase (compiler front end...see figure next slide) CS308 Compiler Theory 3Two Main Phases (Analysis and Synthesis) • Analysis Phase :- Breaks up a source program into constituent pieces and d l f ll d d pro duces an interna l representation of it call e d intermed d iate co de. • Synthesis Phase :- translates the intermediate code into the target program. • During this lecture we shall focus on the analysis phase (compiler front end see figure next slide) end … see figure next slide) CS308 Compiler Theory 3