Thread: how to "categorize" c compilers?

  1. #1
    Registered User
    Join Date
    Mar 2010

    how to "categorize" c compilers?

    you "categorize" them to a device (machine) or processor?
    and what do/did you use personally to program in c?

  2. #2
    Registered User
    Join Date
    Sep 2004
    I'm not 100% sure I understand your question.

    A C compiler will compile the code you write to machine language. This machine language is dependent on the CPU architecture of the target machine. In addition, the linker (which is usually bundled with your compiler) will need to link your application against a runtime library, and possible other libraries as well. These libraries are OS dependent. Based on this, we can conclude that the application that your compiler generates is specific to a CPU architecture and an operating system.

    I hope that answers your question.
    bit∙hub [bit-huhb] n. A source and destination for information.

  3. #3
    Registered User
    Join Date
    Aug 2010
    Rochester, NY
    I use GCC, probably always will.

    I've seen it used in very large, fortune 500 corporate environments, too.

    That being said, write now my latest project is in QT, so I'm using QTCreator, so I'm using whatever built-in compiler they have, I believe it's MingW - Otherwise I wouldn't use it.

    My school tries to force you into using CC (The Solaris C compiler), I just make sure it's 100% on GCC then test it on CC, as you need to throw some flags into CC IIRC to get it to use the C99 spec.

    As for the first part of your question, bithub explained it pretty well and to the point.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Quote Originally Posted by Syndacate
    I'm using whatever built-in compiler they have, I believe it's MingW - Otherwise I wouldn't use it.
    The compiler toolchain provided by MinGW is a port of GCC.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    May 2009
    Quote Originally Posted by laserlight View Post
    The compiler toolchain provided by MinGW is a port of GCC.
    The new MinGW GCC 4.5 series is trying to not have to patch the GCC files as they needed to do in past releases. I hope the end up with a usable result that requires only minor code changes (Not counting the changes needed for standard C99). Major change is using Dwarf2 instead of SJLJ for exceptions as was done in 3.4 series MinGW GCC.

    Link to an unofficial patched MinGW GCC site 4.x series
    TDM's GCC/MinGW32 Builds | Download TDM's GCC/MinGW32 Builds software for free at

    Tim S.
    Last edited by stahta01; 09-08-2010 at 11:17 AM. Reason: Add link

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need ur assistance badly plz related to c compilers
    By myselfcapricorn in forum C Programming
    Replies: 3
    Last Post: 12-28-2009, 08:03 PM
  2. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  3. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  4. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 08:03 AM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM