Computer Science, asked by smile3393, 1 year ago

what is compiling and linking in c++?..plz explain in a simple language..

Answers

Answered by one133
2
There are three basic phases occurred when we execute any C program.

Preprocessing

Compiling

Linking

Preprocessing Phase
C pre-processor is a program that accepts C code with preprocessing statements and produces a pure form of C code that contains no preprocessing statements (like #include).

Compilation Phase
C compiler accepts a preprocessed output file from the preprocessor and produces a special file called an object file. Object file contains machine code generated from the program.

Linking Phase
The link phase is implemented by the linker. The linker is a process that accepts as input object files and libraries to produce the final executable program.
Similar questions