What is the difference between gcc/g++ and cc1/cc1plus?

GccG++

Gcc Problem Overview


When I compile my projects and check the resources used by running top, the big CPU/memory hog is sometimes called g++ and sometimes cc1plus. What is the difference between the two, and should I ever call cc1plus directly?

Gcc Solutions


Solution 1 - Gcc

> What is the difference between the two,

The g++ is a compiler driver. It knows how to invoke the actual compiler (cc1plus), assembler and linker. It does not know how to parse or compile the sources.

> and should I ever call cc1plus directly?

No.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichael Schlottke-LakemperView Question on Stackoverflow
Solution 1 - GccEmployed RussianView Answer on Stackoverflow