Thread: What standards does cc compiler complies with?

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    9

    What standards does cc compiler complies with?

    Hello everyone

    My question is when I type cc file.c to compiler in fedora, what is the name of that compiler? who developed it and what standards does it run on?

    I'm sorry if my question is redundant but I'm a bit curious. I tried man cc but there is no manual page for it.

    Thanks

  2. #2
    Registered User
    Join Date
    Jul 2008
    Posts
    38
    If your platform is Linux, it is most likely the GNU C Compiler, you can also use gcc instead of cc.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    At least on my system, cc is a symlink to the default compiler, which is almost always GCC on Linux.

    Code:
    cyberfish@cyberfish-desktop:~$ which cc
    /usr/bin/cc
    cyberfish@cyberfish-desktop:~$ ls -l /usr/bin/cc
    lrwxrwxrwx 1 root root 20 2009-05-04 16:40 /usr/bin/cc -> /etc/alternatives/cc
    cyberfish@cyberfish-desktop:~$ ls -l /etc/alternatives/cc
    lrwxrwxrwx 1 root root 12 2009-05-04 16:38 /etc/alternatives/cc -> /usr/bin/gcc

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    And if so, you can usually supply the standard you want:
    Code:
    gcc -o foo foo.c -Wall -pedantic -std=c99

    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Feb 2009
    Posts
    9
    Thank you everyone

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  2. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  4. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM
  5. Help With finding a compiler
    By macman in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-15-2005, 08:15 AM