what are the different between gcc and cc compiler?

Discussion in 'C Programming' started by nick, Oct 17, 2005.

  1. nick

    nick Guest

    nick, Oct 17, 2005
    1. Advertisements

  2. >thanks!

    cc is a hard link to the gcc executable, but gcc is a hard link to
    the cc executable (on FreeBSD). Also, the spelling of the file
    name is different.

    Gordon L. Burditt
    Gordon Burditt, Oct 17, 2005
    1. Advertisements

  3. In article <diutiv$25d3$>,
    nick <> wrote:

    That depends on your operating system and on -which- 'cc' compiler it

    gcc by default accepts a language that is perhaps better named
    'the gcc Language of the Month' than 'C'. gccLotM accepts a number
    of constructs that are not part of C89 or C99, but the exact list
    of constructs varies with the release.

    There is no gcc standards body that is deliberating saying, "This set
    of additions beyond standard C is well defined, logically consistant,
    and provides a noticably richer programming language that will make for
    a C-like language that is even more useful than C, so they shall be
    accepted, but these other features will not be implemented."

    gcc is sort of the experimental extension of C -- add some features
    to the gene pool, see whether they thrive or not, and just generally
    see what happens. The relative success of gcc extensions informs
    the ISO committees when the next standardization attempt is made...
    but the ISO committees are also very very aware of what can reasonably
    be implemented portably and what not, so even the most popular gcc
    extensions are not certain to make it into the C standard.
    Is there any thing whereof it may be said, See, this is new? It hath
    been already of old time, which was before us. -- Ecclesiastes
    Walter Roberson, Oct 17, 2005
  4. nick <> writes:
    > thanks!

    Please put the question in the body of your message, not just in the

    For information on gcc, see <http://gcc.gnu.org>.

    "cc" could be any of a number of C compilers; it's a very common name
    for the default C compiler on a given system. On some systems, it's
    an alias for gcc.

    Keith Thompson (The_Other_Keith) <http://www.ghoti.net/~kst>
    San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
    We must do something. This is something. Therefore, we must do this.
    Keith Thompson, Oct 17, 2005
  5. Malcolm

    Malcolm Guest

    "nick" <> wrote

    gcc is the gnu C compiler. cc is the usual name for the compiler that ships
    with the unix distribution.

    Most compilers will accept ANSI C and, to all intents and purposes, produce
    identical output. However they also come with different optimisers,
    different non-standard extensions, and so forth.
    Malcolm, Oct 17, 2005
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
  2. Replies:
    Aug 2, 2009
  3. Rayne
  4. ks
    Jorgen Grahn
    Mar 20, 2010
  5. Merciadri Luca
    Merciadri Luca
    Oct 14, 2010

Share This Page