COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A compiler ____ (more then one option)
A
translates all source code into machine code in one go
B
creates a stand alone program code called Source code
C
creates a stand alone program code called Object code
D
running object code is slow
Explanation: 

Detailed explanation-1: -Compiler-A program that translates source code into object code. Compiler-A program that translates source code into object code. The compiler derives its name from the way it works, looking at the entire piece of source code and collecting and reorganizing the instructions.

Detailed explanation-2: -A compiler is a special program that translates a programming languageā€™s source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.

Detailed explanation-3: -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).

There is 1 question to complete.