Phases of Compiler | Compiler Design
The main purpose of Compiler is to convert high-level language to low level language. The different phases of Compiler are as:Lexical AnalysisSyntax AnalysisSemantic AnalysisIntermediate Code GeneratorCode optimizationTarget Code GeneratorBut before discussing the phases…