What are the different Steps of a compiler?
The compiler operates in various stages, and each stage converts the source program from one representation to another. There are 6 steps(phases) in a compiler. Each step (phases) helps to convert high level to machine code. Lexical Analysis Syntax Analysis Semantic Analysis Intermediate Code Generator Code Optimizer Code generator If you want to learn all 6 phases of the compiler I gave you a link and check out this link - Phases of Compiler with Example What are the Phases of Compiler Design? Compiler operates in various phases each phase transforms the source program from one representation to another. Every phase takes inputs from its previous stage and feeds its output to the next phase of the compiler. There are 6 phases in a compiler. Each of this phase help in converting the high-level langue the machine code. The phases of a compiler are: Lexical analysis Syntax analysis Semantic analysis Intermediate code generator Code optimizer Code generator Phases o...