ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Assembler
|
|
Compiler
|
|
Interpreter
|
|
None of the above
|
Detailed explanation-1: -The correct answer is Compiler. Compiler-A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or “code” that a computer’s processor uses. Example-Pascal, C etc.
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: -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.