LWN.net Logo

LFCS 2012: LLVM and Linux

LFCS 2012: LLVM and Linux

Posted Apr 26, 2012 8:36 UTC (Thu) by juliank (subscriber, #45896)
In reply to: LFCS 2012: LLVM and Linux by pr1268
Parent article: LFCS 2012: LLVM and Linux

Please note that clang is not always faster than GCC, and clang may perform some optimisations at -O2 that gcc only performs at -O3 (in my case, I have seen it inline non-static functions when compiling a complete program).

Clang has some better optimizations in some parts, gcc in others. Sometimes clang might also optimize less and thus cause smaller code, which might improve performance as well.

In general, performance should be roughly equally I'd say.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds