Source Code
Lexical Analysis
→
Syntax Analysis
→
Intermediate Code
→
Constant Folding
→
Dead Code Elim
→
Code Generation
Run the compiler to see tokens
Run the compiler to see syntax analysis
Run the compiler to see Three Address Code
Run the compiler to see constant folding results
Run the compiler to see dead code elimination
Run the compiler to see optimized code
Run the compiler to see code comparison