DEV Community

Cover image for Clang vs GCC
Rwik Mukhopadhyay
Rwik Mukhopadhyay

Posted on

Clang vs GCC

Clang is relatively new in cpp world. Clang came out of apple’s stable and became open sourced in 2007. Apple uses LLVM extensively. For some unknown reason they choose to drop gcc’s front end , and create a new compiler front end from scratch. Thus Clang is born .
GCC’s main popularity lies in the fact that it is the only option to compile Linux kernel. So if you are working in *nix world GCC is surely your daily driver. Also GCC supports more legacy languages ( like Fortran, ADA). But on the other hand Clang+LLVM reduces compilation time for single threaded applications by 5-10% . For a more comprehensive benchmark comparison check here .

Top comments (0)