Thread: best compiler(s) for c11, c99

  1. #1
    Don't be a jerk.
    Join Date
    Jan 2013
    Location
    Snowball Arkansas
    Posts
    11

    best compiler(s) for c11, c99

    For all the more i have been tinkering with, my current set up of code::blocks 12.11 with GCC on windows 7 x64 is working great.
    What would you recommend if i wanted 100% compatibility with C99 standards?
    Ditto for C11?

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    For C99, your choices are limited if you truly want 100% compatibility: C99 - Wikipedia, the free encyclopedia.

    As for C11, I am not aware of any implementations that are 100% compatible. I would imagine most of the major ones support some of the features added in C11, though which ones will vary form implementation to implementation. You would have to check the implementation's documentation or search the web.

    My personal recommendation, in general, is for GCC, however, I have very limited experience with other compilers, so am probably a bit biased in that regard. I also use it exclusively on Linux, so I don't know how the Windows implementation differs. Still, it's done pretty well with every C99 feature I've tried, which is most of them, except type generic math, and I haven't used the complex types much, just to play around.

    Honestly though, do you really need 100% compatibility Is there anything from those standards that you absolutely need, that is not covered in your current implementation or any other free implementation.

  3. #3
    Stoned Witch Barney McGrew's Avatar
    Join Date
    Oct 2012
    Location
    astaylea
    Posts
    420
    GCC and Clang have either 100% support for language or something close to that. However, you'll have difficulty finding support from libraries — I don't know any that fully implement the standard C library.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    I haven't run it through rigorous testing, but Pelles C seems to be C11 compliant.
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    Do you know if Pelles C uses the Microsoft runtime, or do they provide their own runtime modules?

    Jim

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Quote Originally Posted by jimblumberg View Post
    Do you know if Pelles C uses the Microsoft runtime, or do they provide their own runtime modules?
    I don't, sorry. I recall that CommonTater used to hang around on this forum and was a Pelles C dude. Maybe he's still around, or you can find out by asking on the Pelles C forum if not.
    My best code is written with the delete key.

  7. #7
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by Prelude View Post
    I don't, sorry. I recall that CommonTater used to hang around on this forum and was a Pelles C dude. Maybe he's still around, or you can find out by asking on the Pelles C forum if not.
    Not anymore...
    Tater banned?

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    Okay, thanks. The reason I asked is because the last time I checked, the default runtime used by gcc on Windows didn't support C99/C11. So even though the compiler supported most of the C99 standard there were problems caused by the runtime library which doesn't support anything but C90. So unless Microsoft starts supporting the current standards you may still have problems with C99/C11 support if you use Windows.

    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 04-23-2012, 07:54 AM
  2. Replies: 7
    Last Post: 12-13-2010, 10:02 PM
  3. Replies: 4
    Last Post: 09-12-2009, 01:10 PM
  4. Replies: 2
    Last Post: 02-04-2008, 02:34 AM
  5. hp iPAQ 6300 && C compiler || C# compiler
    By xddxogm3 in forum Tech Board
    Replies: 2
    Last Post: 12-07-2004, 07:28 AM