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
Top TS PGECET Computer Science & Information Technology Questions