Difference between CC, gcc and g++?

后端 未结 3 754
陌清茗
陌清茗 2020-12-02 04:33

What are the difference between the 3 compilers CC, gcc, g++ when compiling C and C++ code in terms of assembly code generation, available libraries, language features, etc

3条回答
  •  被撕碎了的回忆
    2020-12-02 05:14

    I wanna add just one information what cc in Linux. It is linked with gcc. To check it.

    Similarly, the same thing with c++.

    uddhavpgautam@UbuntuServer1604:~/Desktop/c++$ whereis c++
    c++: /usr/bin/c++ /usr/include/c++ /usr/share/man/man1/c++.1.gz  
    uddhavpgautam@UbuntuServer1604:~/Desktop/c++$ ls -l /usr/bin/c++
    lrwxrwxrwx 1 root root 21 Jul 31 14:00 /usr/bin/c++ -> /etc/alternatives/c++
    uddhavpgautam@UbuntuServer1604:~/Desktop/c++$ ls -l /etc/alternatives/c++
    lrwxrwxrwx 1 root root 12 Jul 31 14:00 /etc/alternatives/c++ -> /usr/bin/g++
    

提交回复
热议问题