COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The term used to describe the code READ by a compiler is..
A
Object Code
B
Machine Code
C
Source Code
D
Binary Code
Explanation: 

Detailed explanation-1: -Source code is the list of human-readable instructions that a programmer writes-often in a word processing program-when he is developing a program. The source code is run through a compiler to turn it into machine code, also called object code, that a computer can understand and execute.

Detailed explanation-2: -Compilers analyze and convert source code written in languages such as Java, C++, C# or Swift. They’re commonly used to generate machine code or bytecode that can be executed by the target host system.

Detailed explanation-3: -Source code and object code are sometimes referred to as the before and after versions of a compiled computer program.

Detailed explanation-4: -Source code is primarily used as input to the process that produces an executable program (i.e., it is compiled or interpreted). It is also used as a method of communicating algorithms between people (e.g., code snippets in books).

There is 1 question to complete.