COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
select one of the true statement for the compiler?
A
the input of the compiler is source program
B
it translates the source code into object code as a whole
C
the output of the compiler is object code
D
all of above
Explanation: 

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.

There is 1 question to complete.