ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Object Code
|
|
Machine Code
|
|
Source Code
|
|
Binary Code
|
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).