Dear readers,
In this lesson we tell you about the some necessary steps to prepare C program for execution..
SO FRIENDS LETS START LESSON
- Some steps which are taken to prepare a C program for execution are :-
- Creating & Editing C Program
- saving C program
- Compiling C program
- Linking C program
- Loading C program
- Executing C program
- Creating & Executing C program :-
The first step is to create and edit the source program in C. The C program is usually and edited in Turbo C editor.
After writing or editing the source program, it is saved on the disk as text file with an extension ".c".
In this step, the source program is compiled. The source program is converted into machine code. The C compiler is used to translate the C program source code into the machine code.
In this step, the Linker links object file produced by the compiler to many other library files.
After linking the object code to the libraries, an executable file with extension EXE is created.
In this step the loader loads the executable file from disk into memory for execution. The program must be loaded into memory for execution.
In this step, the program is executed on the computer. The CPU fetches instructions of program from memory one by one and takes action on them.
Thanks for taking the time to discuss this I feel strongly about it and love learning more on this topic. If possible as you gain expertise would you mind updating your blog with more information? as it is extremely helpful for me.
ReplyDeletehttp://celabright.biz