Thursday, 12 December 2013

Difference Between Source Code And Object Code

1: Source Code:



Those instructions which are written in a high level
language is called the source code. Source code is the category

of computer language instructions that is most frequently 
written and read by software programmers. A computer cannot 
generally run a program in source code form though. Since 
computer works only with the binary code, the programs written 
in a high level languages can't run directly on the computer.
They must be converted into the binary code for execution by
the computer.

2: Object Code:


Object code is produced when an interpreter or 
a compiler translates source code into executable machine code.
A computer programs or set of instructions in the machine 
language is called the object code. It is also called the object
program. These instructions are understood by a computer in the 
lowest hardware level. Since machine language is the native 
language of the computer, a program written in machine language 
runs directly on the computer. These object code is usually 
produced by the compiler that reads some higher level of
computer language source instructions and translates them in equivalent
machine language instructions. 

No comments:

Post a Comment