3 ms·
GCC, from my experience, generates much faster binaries. Clang is much faster at compiling though. It's a trade off.
by gravypod 11y ago
GCC, from my experience, generates much faster binaries.
Clang is much faster at compiling though. It's a trade off.
- octoploid 11y agoCorrection. Clang used to compile much faster years ago. But nowadays GCC-6 actually compiles faster than clang-3.8.0. See e.g.: http://hubicka.blogspot.com/2016/03/building-libreoffice-with-gcc-6-and-lto.html http://hubicka.blogspot.com/2016/03/building-libreoffice-wit...
- PeCaN 11y agoThat was the case circa 2012 with Clang 3.1 and GCC 4.7, but both have closed the gaps. Clang generates code roughly as fast as GCC and GCC compiles about as fast as Clang.
- agumonkey 11y agofunny how this opposite spectrum leads to https://upload.wikimedia.org/wikipedia/commons/7/7c/Vector_Addition.png https://upload.wikimedia.org/wikipedia/commons/7/7c/Vector_A... risc / cisc gathered around each other, clang / gcc... progress by antagonism