2. 3 basic steps in creating an
executable form of a c code
Writing the c code.
Compiling the c code.
Linking the c code with corresponding function.
3. Writing a c code
The program which we wrote on an editor is known as
source code(high level language code).
This has an extension .c
This will be given to compiler before executing.
4. compiling
In this section an object code(machine level code)
gets generated.
The object code is independent of errors.
Soo the compiler identifies the errors and sends error
messages.
The object code has an extension of .obj
5. Linking
The object code can’t directly gives results.
The linker establishes the connectivity between the
library functions and the program.
And fetches those into a file and it takes name what
we have given.
It has an extension .exe(windows operating system).
It has an extension a.out(linx or unix).
This generates a code executable code.
6. Let us take a program named sum.
Sum.c-source code,
Sum.obj-object code,
Sum.exe-executable code.