what are the different between gcc and cc compiler?

G

Gordon Burditt

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
 
W

Walter Roberson


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

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.
 
K

Keith Thompson

nick said:

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

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.
 
M

Malcolm

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top