3.Compilation Process
3.Compilation Process
I YEAR / I SEMESTER
1
C- compiler
There are many compilers available for c and c++. You need to
download any one. Here, we are going to use Turbo C++
.
• The compilation process can be divided into four steps, i.e., Pre-processing,
Compiling, Assembling, .and Linking.
• The following are the phases through which our program passes before
being transformed into an executable form:
1. Preprocessor
2. Compiler
3. Assembler
4. Linker
Preprocessor .
Compiler
.
• The code which is expanded by the
preprocessor is passed to the compiler. The
compiler converts this code into assembly code.
Assembler
.
• The assembly code is converted into object
code by using an assembler. The name of the
object file generated by the assembler is the same
as the source file.
• The extension of the object file in DOS is '.obj,'
and in UNIX, the extension is 'o'. If the name of
the source file is 'hello.c', then the name of the
object file would be 'hello.obj'.
PROBLEM SOLVINGAND C PROGRAMMING/
05/12/2024 COMPILATION LINKING PROCESS / DURGALAKSHMI 7
B/AIML/SNSCT
Compilation process in c
Linker
.
• Mainly, all the programs written in C use library functions.
hello.c .
#include <stdio.h>
int main()
printf("Hello javaTpoint");
return 0;