COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Before a computer can understand a program it must be ____
A
Translated into its machine code.
B
Translated into a high level language.
C
Translated into a low level language.
D
Converted into binary.
Explanation: 

Detailed explanation-1: -Ultimately, the source code of every human-readable programming language must be translated to machine language by a compiler or an interpreter, because binary code is the only language that computer hardware can understand. Each CPU has its own specific machine language.

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

Detailed explanation-3: -A compiler is a special program that translates a programming language’s source code into machine code, bytecode or another programming language.

There is 1 question to complete.