当我编译我的项目并检查运行 top所使用的资源时,大的 CPU/内存占用有时称为 g++,有时称为 cc1plus。这两者之间的区别是什么? 我应该直接调用 cc1plus吗?
top
g++
cc1plus
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.