Differences between Linux CC and GCC

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.