Lifecycle of C program

A computer program goes through many phases from its development to execution. From the human readable format (source code) to binary encoded computer instructions (machine code).

Source code

Source code is a plain text file containing a programming code(instruction) written by human which can be read and change . It is simple text file written by programmers. source code is shared with anyone who wants to look at it and change it. Source code is later compiled and translated to Object code.


int main()

Object code(OBJ)

Object code is a sequence of statements generated by compiler after the compilation process. The compiler reads source code written in high-level language and translates it to an intermediate language. The file generated by file called object code.

Machine code

Machine code is a set programs written in machine language. It is the only code executed by the CPU.

Its in binary, form of zero’s and ones. which can only be read by cpu present in computers .

As binary is the only languges which computer understands.these binary code can be of same length or can be vary depend’s upon the binary code


01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100

Hits: 124

Tags: No tags

Share your thoughts