Differences between Linux CC and GCC
In terms of name, the CC program of the old UNIX system is called C compiler.
. However, the GCC name is called GNU according to GNU.
Compiler Collection
. Because GCC contains many compilers (C, C ++, objective-C, Ada, Fortran, and Java)
. So they are different. One is an old C compiler, and the other is a set of GNU compilers of the compiler (the C compiler in GCC is much more powerful than CC, so you do not need to use CC ). When you call GCC, the C/C ++ compiler is not necessarily called. GCC automatically identifies and calls the corresponding compiler based on the file extension. For details, refer to $ man.
GCC.
You cannot download CC because CC comes from expensive UNIX systems and CC is a commercial software.
To use it, you need to call and write the order, instead of opening your browser to download.
In Linux, CC is the symbolic link of GCC.
. You can use $ LS-l
/Usr/bin/CC
The console output CC displayed during compilation is a variable pointing to GCC, which is the built-in variable of the make program, even if you do not have cc =
The variable also exists and points to GCC by default. The symbolic links and variables of CC exist in the source code.
Can easily use GCC to compile the old UNIX software compiled with CC, and even do not change the makefile. It also facilitates compilation of Linux programs in UNIX.
A new situation in recent years is the increasing number of Unix users. As far as I know, users like Solaris and BSD do not use CC much. People must install a GCC, use it to compile C/C ++ programs. The reason is obvious: GCC is powerful and robust. Only the ISO supported by it is supported so far.
New Features of C/C ++. Of course, you 'd better not use night GCC.
From http://5dlinux.com/article/6/2010/linux_38705.html