The C program pursues numerous means in execution. To comprehend the progression of C program well, let us see a straightforward program first.
printf(“Hello C Language”);
How about we attempt to comprehend the progression of above program by the figure given underneath.
1) C program (source code) is sent to preprocessor first. The preprocessor is dependable to change over preprocessor mandates into their individual qualities. The preprocessor creates an extended source code.
2) Expanded source code is sent to compiler which accumulates the code and changes over it into gathering code.
3) The get together code is sent to constructing agent which gathers the code and changes over it into object code. Presently a simple.obj record is produced.
4) The article code is sent to linker which joins it to the library, for example, header documents. At that point it is changed over into executable code. A simple.exe document is produced.
5) The executable code is sent to loader which loads it into memory and afterward it is executed. After execution, yield is sent to support.
There are different strides of the execution of the C program that is given beneath.
The accompanying advance of the execution
Compose source codes
Proofreader or IDE:
This is the initial step while composing the source codes of the program, there must require any proofreader or IDE (like scratch pad and notepad++ and so on) where we can compose claim source code and spare it by utilizing source codes (.c) and headers ( .h).
In this area, the source code incorporates the record and replaces the images and send to the following segment compiler.
In this area, the compiler arranges the source code of the program and makes the item codes (.obj and .o)and sends to the linker.
In this area, the linker joins the item codes into static libraries (.dll and .so) and makes the executable code (.exe).
In this area, the loader stacks the executable code by utilizing shared libraries (.dll and .so)file and send to the CPU for execution as per client information and return yield.