ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The code generator translates the optimized intermediate code version of the program into an equivalent ____
|
assembly language
|
|
machine language
|
|
programming language
|
|
source language
|
Explanation:
Detailed explanation-1: -High Level intermediate code A compiler or an interpreter generates high-level intermediate code, which stands between the source code and the machine code. It is portable and platform-independent, allowing it to run on various platforms.
Detailed explanation-2: -Intermediate code can translate the source program into the machine program. Intermediate code is generated because the compiler can’t generate machine code directly in one pass. Therefore, first, it converts the source program into intermediate code, which performs efficient generation of machine code further.
There is 1 question to complete.