Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
122 views

Definition of Object Code

Object code is a set of machine-readable instructions that is produced when source code is compiled. It contains a sequence of instructions that can be directly executed by the CPU. Whereas machine code can be directly executed, object code has jumps partially parameterized so that a linker can fill them in. Object code is system-specific, low-level code that is not human-readable but can be executed by the machine, unlike source code which is high-level code written by programmers.

Uploaded by

Waleed Zebary
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views

Definition of Object Code

Object code is a set of machine-readable instructions that is produced when source code is compiled. It contains a sequence of instructions that can be directly executed by the CPU. Whereas machine code can be directly executed, object code has jumps partially parameterized so that a linker can fill them in. Object code is system-specific, low-level code that is not human-readable but can be executed by the machine, unlike source code which is high-level code written by programmers.

Uploaded by

Waleed Zebary
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Subject name Object code

Creating by:
Waleed ali
Mahmood basher
Supervised by:
Dr. Azam Al-Rawachy
Definition of object code:

A computer program after translation from source code


usually into machine language by a compiler.

Object code is a set of instruction codes that is


understood by a computer at the lowest hardware
level. Object code is usually produced by a compiler
that reads some higher level computer language source
instructions and translates them into equivalent
machine language instructions

What is object code with example?

Object code is the language that a central processing


unit can understand after it has been translated by the
compiler from the programming source code. An
example of object code is ELF (Executable and Linking
Format).
1
What is object code vs machine code?

Whereas machine code is binary code that can be


executed directly by the CPU, object code has the
jumps partially parametrized so that a linker can
fill them in. An assembler is used to convert
assembly code into machine code (object code). A
linker links several object (and library) files to
generate an executable.

What is object code used for?


Object code generally refers to the output, a
compiled file, which is produced when the Source
Code is compiled with a C compiler. The object
code file contains a sequence of machine-readable
instructions that is processed by the CPU in a
computer.

2
Difference between Source Code and Object Code:

Source code Object code


1) generated by human or programmer. 1) generated by compiler or other
translator.

2) high level code. 2)low level code

3) written in plain text by using some high 3) translated code of source code. It is in
level programming language. binary format.

4) human understandable. 4) not human understandable.

5) It can be easily modified. 5) It cannot be modified.

6) not directly understandable by 6) machine understandable and


machine. executable.

7) It contains comments for better 7) It does not contain comments for


understanding by programmer. understanding by machine.
8) It contains less number of statements 8) It contains more number of statements
than object code. than source code.
9) Source code is not system specific. 9) Object code is system specific.

10) It can be changed over time. 10) Source code needs to be compiled or
translated by any other translator to get
modified object code.
11) Performance of source code is less 11) Performance of object code is more
than object code as it is less close than source code as it is more close
towards machine. towards machine.
12) It is written in high level language like 12) It is written in machine language
C, C++, Java, Python etc or assembly through compiler or assembler or other
language. translator.

You might also like