Question: What is the purpose of code generation in a compiler?
Options:
Correct Answer: To produce machine code from intermediate code
Solution:
Code generation is the phase where the compiler translates intermediate code into machine code that can be executed by the target machine.