Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

Debate: GCC vs Clang vs MSVC

Would like you guys's honest opinion on each compiler.

Imo, gcc wins, as I don't have that much of a problem with their terrible error messages. From benchmark results gcc produces the fastest code out of all.
Clang's error messages are undeniably better though. And as for msvc... I don't know much.
I prefer GCC to compile. Based on my experience, it's the easiest to troubleshoot and it's been around since the start of C/C++.
cl compiller (msvc) is simple to use
gcc have more options to use
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
MSVC is obviously better if you're targeting Windows machines either mainly or exclusively. Me, personally, I like openness and transparency when it comes to pretty much anything, including the tools I use when programming. I've used TDM-GCC for several years now and have never encountered any serious issues. Granted, there are compile and execution time differences, but at this point it's nearly unnoticeable.

I've looked into LLVM, but as far as use on Windows goes it seems to have maintained its fringe aspect where as GCC and MSVC remain far more widespread. That doesn't necessarily mean it's better or worse, I've just never bothered to give it a shot.
[Image: chain.png]
I prefer GCC and posix emulators to use c syntax and his linguistics but you need other compilers and this choice can change when you used operating system.
GCC all the way; popular, easy to use and produces optimal code in most cases. Clang-tidy/format are amazing addons which can be used separately from Clang - probably the best free linter/static analysis tool for C++ you can find today. Other than that, LLVM hasn't got much else that attracts me. MSVC vs GCC is a hard comparison due to the OS focus, but MSVC is really the only choice for Windows. It integrates seamlessly with Windows debugging tools and makes life a hell of a lot easier in that aspect, but I find its error reporting to be awkward and it doesn't feel as fleshed out as GCC/LLVM.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by ssxxlNov 24, 2021 01:31 AM 32 1,182 Nov 24, 2021 01:31 AM
Last Post: 4Txe4y33C9zvNhMj
[C] by Byte™Jul 7, 2018 03:55 AM 1 119 Jul 7, 2018 03:55 AM
Last Post: Auriana
[C] by Y0ixOct 1, 2016 12:21 PM 7 226 Oct 1, 2016 12:21 PM
Last Post: 0xDEAD10CC