ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
ASSEMBLER
|
|
INTERPRETER
|
|
COMPILER
|
|
None of the above
|
Detailed explanation-1: -A compiler is a special program that translates a programming language’s source code into machine code, bytecode or another programming language.
Detailed explanation-2: -The correct answer is Compiler. A compiler takes the program code (source code) and converts the source code to a machine language module (called an object file).
Detailed explanation-3: -In order to translate source code into machine code, a compiler or interpreter must be used. Machine translation is the process of translating text from one language to another. In order to translate source code into machine code, a compiler or interpreter must be used.
Detailed explanation-4: -The correct answer is Interpreter. A computer program that translates one program’s instructions at a time into machine language is called an Interpreter. An interpreter translates one instruction at a time and executes that instruction immediately.