ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Assembler
|
|
Compiler
|
|
Interpreter
|
|
COBOL
|
Detailed explanation-1: -The correct answer is Interpreter. A computer program that translates one program’s instructions at a time into machine language is called an Interpreter.
Detailed explanation-2: -The Interpreter translates a program written in a High-level language into machine-understandable code one line at a time during the execution of the program. There is no intermediate code generated during the conversion of the program to machine understandable code.
Detailed explanation-3: -Interpreters An interpreter translates high-level languages into machine code line-by-line. Interpreters have procedures that can be used to translate each kind of program instruction. Rather than checking for errors before translation begins (as a compiler does), interpreters check for errors as they go.