COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A program that translates entire high level language into machine language at onceWhat is this Translator?
A
Assembler
B
Interpreter
C
Compiler
D
None of the above
Explanation: 

Detailed explanation-1: -A program that converts a high-level language source file into a machine-language file is called a compiler.

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: -A Compiler takes a program as a whole. An Interpreter takes single lines of a code. Output. The Compilers generate intermediate machine codes. The Interpreters never generate any intermediate machine codes.

There is 1 question to complete.