(Discussion) Clang Versus GCC : Better Compiler ?
But why someone would do that ? Couple of main reasons are :
- Compilation time : It is pretty fast than GCC, as they claim. Try executing your big fat C code & compare its compilation time. It's almost ~1.7 times faster, which is BIG deal!
- Better Disgnostics : Just incase your code fails to execute, it will give you precise detail on error. So, less time wasted in iterating the error.
Nor Clang or GCC is better in all classes, so it needs a discussion!
So, if you're keen to test both compilers & planning to switch from GCC to Clang. Let's discuss in here, the Pros & Cons of both compilers & differentiate on the fact that which compiler outperforms other in what aspect. Let's talk about optimization, memory footprint, code compilation speed, code diagnosis, C++11 support & speed of resulting binary.