GCC or Clang?!

Discussion in 'General Computing' started by Kryyll, Apr 17, 2014.

  1. Kryyll

    Kryyll Active Member

    Messages:
    111
    Likes Received:
    38
    Trophy Points:
    28
    I'm just curious to see the community's opinion on GCC and Clang. I have used both of these compilers and I personally like GCC better. I think that Clang's error messages are far better but thats about all. I can't really tell a difference in speed. What are your opinions?!

  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,287
    Likes Received:
    1,029
    Trophy Points:
    113
    I prefer GCC because it seems to have less problems compiling code.
    Kryyll likes this.
  3. MikeyD

    MikeyD Active Member

    Messages:
    232
    Likes Received:
    111
    Trophy Points:
    43
    I prefer GCC truthfully because its what I've always used :D

    It seems to be apples to oranges as far as which is better (a quick Stackoverflow query showed people have opinions one way or another, but no clear benchmarks seems to have been done that everyone can agree upon....
    http://stackoverflow.com/questions/8205858/clang-vs-gcc-for-my-linux-development-project)

    Clang does apparently have better error messages, but I've never had a problem reading GCC's error messages, and the line numbers in GCC always seem to be very accurate. Then again, I've only really developed in C not C++ and not at an enterprise/production level.
  4. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,226
    Likes Received:
    414
    Trophy Points:
    83
    I haven't really tried Clang. In my opinion the real question is GCC vs ICC.
    Kryyll likes this.
  5. Kryyll

    Kryyll Active Member

    Messages:
    111
    Likes Received:
    38
    Trophy Points:
    28
    One of my friends and I disagree on this topic and we always fight about it. Personally GCC is my favorite but I don't mind Clang. I'm also a wee bit biased towards free software (software released under the GPL) but I have no real issue with Clang. Also, does anyone know if you can switch the compiler on Gentoo? I'm not actually planning on it but is it possible?
  6. Kryyll

    Kryyll Active Member

    Messages:
    111
    Likes Received:
    38
    Trophy Points:
    28
    Wait sorry, dumb question.... *facepalm*

Share This Page