|
发表于 2022-9-21 18:43:29
|
显示全部楼层
gcc has evolved from a single language "GNU C Compiler" to be a multi-language "GNU Compiler Collection". The term "GNU C Compiler" is still used sometimes in the context of C programming.
根据stackoverflow高赞答案:g++ == gcc -xc++ -lstdc++ -shared-libgcc
只是缺省参数不同,后端调用相同的compiler。我觉得理解gcc是否就是g++,取决于什么叫“同”
参考:https://stackoverflow.com/questions/172587/what-is-the-difference-between-g-and-gcc |
|