CC and GCC in Linux
By Zhou yinhui
Reprinted from: http://www.cnblogs.com/zhouyinhui/archive/2010/02/01/1661078.html
In Linux, CC will be seen later, and GCC will be seen later, which is a bit messy. Are they the same thing? What is the difference?
In two parts:
First, if the scope of discussion is between UNIX and Linux, Then CC and GCC are not the same thing. CC from UNIXC LanguageCompiler, short for C compiler. GCC comes from the Linux world and is short for GNU Compiler Collection. Note that this is a set of compilers, not just C or C ++.
Secondly, if the scope of the discussion is limited to Linux, we can think that they are the same. When we call CC in Linux, it does not actually point to the Unix CC compiler, but to GCC, that is to say, CC is a link (shortcut) of GCC. Let's see the terminal output below:
By Zhou yinhui
Reprinted from: http://www.cnblogs.com/zhouyinhui/archive/2010/02/01/1661078.html
In Linux, CC will be seen later, and GCC will be seen later, which is a bit messy. Are they the same thing? What is the difference?
In two parts:
First, if the scope of discussion is between UNIX and Linux, Then CC and GCC are not the same thing. CC is a unix c language compiler, short for C compiler. GCC comes from the Linux world and is short for GNU Compiler Collection. Note that this is a set of compilers, not just C or C ++.
Secondly, if the scope of the discussion is limited to Linux, we can think that they are the same. When we call CC in Linux, it does not actually point to the Unix CC compiler, but to GCC, that is to say, CC is a link (shortcut) of GCC. Let's see the terminal output below:
In Linux, CC will be seen later, and GCC will be seen later, which is a bit messy. Are they the same thing? What is the difference?
In two parts:
First, if the scope of discussion is between UNIX and Linux, Then CC and GCC are not the same thing. CC is a unix c language compiler, short for C compiler. GCC comes from the Linux world and is short for GNU Compiler Collection. Note that this is a set of compilers, not just C or C ++.
Secondly, if the scope of the discussion is limited to Linux, we can think that they are the same. When we call CC in Linux, it does not actually point to the Unix CC compiler, but to GCC, that is to say, CC is a link (shortcut) of GCC. Let's see the terminal output below: