CC and GCC in Linux

Source: Internet
Author: User
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:

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.