Beginner
Compilers & Programming Language Theory
Q1 / 100
What are the main phases of a compiler?
Correct! Well done.
Incorrect.
The correct answer is A) Lexical analysis, syntax analysis, semantic analysis, intermediate code generation, optimization, code generation
A
Correct Answer
Lexical analysis, syntax analysis, semantic analysis, intermediate code generation, optimization, code generation
Explanation
Compiler phases: Lexer (tokens) → Parser (AST) → Semantic Analysis (type checking) → IR generation → Optimization → Code generation. A linker is a separate tool.
Progress
1/100