Write the difference between phase and pass

No. Phase Pass
1 The process of compilation is carried out in various step is called phase. Various phases are logically grouped together to form a pass.
2 The phases of compilation are lexical analysis, syntax analysis, semantic analysis, intermediate code generation, code optimization and code generation. The process of compilation can be carried out in a single pass or in multiple passes.

Leave a Reply