DEV Community

Cover image for Clang vs GCC
Rwik Mukhopadhyay
Rwik Mukhopadhyay

Posted on

7

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay