Reputation: 83
From what I understand, the C language consists of a 4 stage compilation process:
On my Windows OS -
Preprocessor
Assembling
Compilation
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
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