hot post

(Execution of a program) Introduction of c language part 3

Introduction of c language 

(Execution of a program)

c language

Execution of a programHello friends, today I am going to tell you about the execution of the program in very  detail, so let's start

Execution of a program

There are three important hardware 
In processor there are three part 
processor

for example: we take 16B(bite) file. 
16 bite file
16 bite file
when we execute 16B file then the file copy them-self and the copy file go to the RAM and original file remain in hard disk
RAM is volatile memory so any information in RAM vanish out further it save in hard disk.
In RAM, each program have its memory and have specific space. It is the responsibility of operating system to provide space in the RAM on which our  file will execute.
In the file, there are many instruction which is in the form of 0 and 1.
The first 16 0 and 1 is first information and the next 16 0 and 1 is second and so on.
The first information go to the MU in the processor. In MU, there are many different kind of resistance and our instruction store in  instruction resistance   
For 16B file resistance should also be 16B resistance.
Control unit (CU) read the all information which is in MU and it give signal to ALU.
ALU perform many type of calculation in the processor. When CU ordered ALU for doing any calculation then ALU perform its function  otherwise it does not perform any function  
And finally ALU execute all the instruction.

Software development in C 

For software,We have to make "sum.exe" file because "sum.exe" file is the software file.
 But there is a problem because computer understand only binary language and binary language is very difficult for human being.
the solution of this, we learn c language.
when we write any code in c language then many function take place which is given below:

 We will doing coding in c language.
the file in which we are doing coding is known as source file and its extension is "sum.c" But it is not software file because computer can not read this.
We have to convert "sum.c" file in "sum.exe" file for this we use first 'preprocessor'.In any programming, the statement which start with '#' is handled by preprocessor.
Now we use 'compiler' software to translate the coding and it form new file which has "sum.obj" extension. We also need library file to translate the coding because those word which is not understand by compiler then it take help of library files.
The code of library file and "sum.obj" file link by linker and it form new file which has "sum.exe" extension. 
Now new software is ready

Note: when we give our .exe file to other person then we give only .exe file not preprocessor, compiler and linker. 


I am trying my best to explain the c language to you, please stay with me and share this post and if there is any mistake then you comment on comment box


other parts is here 
part 1 (https://grapsvs.blogspot.com/2020/04/introduction-to-c-language-part-1.html)
part 2 (https://grapsvs.blogspot.com/2020/04/introduction-of-c-language-part-2-hindi.html)

thanks for support

Post a Comment

0 Comments