Slashdot Mirror


Developing In C/C++? Why You Should Consider Clang Over GCC (dice.com)

Nerval's Lobster writes: The idea with Clang, a compiler front-end for C, C++, Objective-C++, and Objective-C, and LLVM (a compiler infrastructure) is that you can mix the compiler front-end with a targeted back-end and end up with highly portable and efficient compiler. Clang can perform static analysis of your code, and lets you write tools that give you information about a program. Although many developers prefer developing in C/C++ using GCC, developer David Bolton (in a new Dice article) makes an argument for why you should switch to Clang. While GCC is probably still best when it comes to speed, he argues, Clang is improving release by release, and features tools that developers could find useful.

4 of 255 comments (clear)

  1. Re:What do they mean by speed? by Chris+Mattern · · Score: 4, Funny

    If I can be modded down for being a troll, can I be modded up for being an orc, or a balrog?

    Nope, those still get you modded down. To be modded up, you'll need to be an elf or a hobbit...

  2. Re:Translation by Anonymous Coward · · Score: 1, Funny

    Is this sarcasm? Please tell me this is sarcasm and you intentionally got it backwards.

  3. Re: Translation by Anonymous Coward · · Score: 5, Funny

    And what kind of garbage programmers are you that need to compile the same code multiple times? Write the code correctly the first time and only compile once.

  4. Re: Translation by Darinbob · · Score: 3, Funny

    I keep telling the users that, run the program correctly the first time and you shouldn't have to run it a second time!