PrasoonMishra
PrasoonMishra

Reputation: 83

Difference between C and C++ Building Process

From what I understand, the C language consists of a 4 stage compilation process:

On my Windows OS -

  1. Preprocessor

  2. Assembling

  3. Compilation

  4. Linking

I want to know if there are any differences between a C compiler and C++ compiler, in terms of the steps above. I believe that C++ can also consist of the above 4 stages.

Are there any differences that I am not aware of from a big picture perspective?

Upvotes: 2

Views: 517

Answers (1)

Grzegorz Herman
Grzegorz Herman

Reputation: 1915

The preprocessing and linking stages are basically the same (C and C++ share the preprocessor, and linking is done with no regard for the source language). The compilation/assembling phase is still there, but it has to be different - after all, we are dealing with a difference language here.

Edit: the details of C vs. C++ compilation are far too much to answer here ;)

Upvotes: 5

Related Questions