Question:

The output of code generation is usually

Show Hint

Intermediate Code Generation produces TAC (Three Address Code). Code Generation converts TAC into assembly or machine code.
Updated On: Jun 25, 2026
  • Abstract syntax tree
  • Assembly or machine code
  • Three-address code
  • Symbol table
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Concept: Code generation is the final phase of a compiler. Its purpose is to convert intermediate code into target machine instructions.

Step 1:
Review compiler phases.
Compiler phases include: \[ \text{Lexical Analysis} \rightarrow \text{Syntax Analysis} \rightarrow \text{Semantic Analysis} \rightarrow \] \[ \text{Intermediate Code Generation} \rightarrow \text{Code Generation} \]

Step 2:
Output of code generation.
The generated code may be:
• Assembly language
• Machine language depending upon compiler design.

Step 3:
Choose the correct option.
Hence the output is \[ \boxed{\text{Assembly or Machine Code}} \]
Was this answer helpful?
0
0