Question: What is the primary purpose of intermediate code generation in a compiler?
Options:
Correct Answer: To provide a platform-independent representation of the source code
Solution:
Intermediate code generation creates a representation of the source code that is independent of the target machine, allowing for easier optimization and code generation.