ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
the input of the compiler is source program
|
|
it translates the source code into object code as a whole
|
|
the output of the compiler is object code
|
|
all of 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: -Explanation: The primary and main function of a Compiler is to translate source code from a high-level programming language to a lower-level language like object code. A compiler creates a machine code that runs on a processor with a specific Instruction Set Architecture (ISA), which is processor-dependent.
Detailed explanation-3: -Which of the following is not a feature of compiler? Explanation: The objective of the compiler is clearly not to increase the execution time of the program. 7. A system program that brings together separately compiled modules of a program into a form language that is suitable for execution.