What are the differences between source
code, object code, and executable code?
|
SN |
Source Code |
Object Code |
|
1 |
Created by the programmer. |
Created by the Compiler. |
|
2 |
Text rich document. |
Binary digits make up the Object Code. |
|
3 |
Human Readable. |
Machine Readable. |
|
4 |
Can be changed over time. |
Needs to compile the Source Code each time a change is to be made. |
|
5 |
Not system specific. |
System specific. |
|
6 |
Serves as input to the compiler. |
It is the output of the compiler. |
|
7 |
Instructions written using English words and according to syntax of the language. |
Instructions encoded in Binary digits. |
Executable Code or Binary Code means a Computer Program or Software in a form that can be run in the computer directly. It typically refers to machine language, which is the set of native instructions the computer carries out in hardware.
Note : in C,
1. Source Code is saved with extension .c, for example: Exp1.C.
2. Object Code is output of complier with extension.obj, for example: Exp1.obj
3. Exactable Code is output of linker with extension .exe, for example Exp1.exe
