Re:Adélie Linux
by donkeybeer on Saturday January 06, 2024 @03:43PM
(#38895249)
What are your reasons for preferring clang over gcc?
[ Parent
| on HN ]
Re:Adélie Linux
by sidkshatriya on Saturday January 06, 2024 @03:58PM
(#38895393)
Clang/LLVM allows a lot of tinkering and compiler software development that is more difficult with gcc.
Clang/LLVM is just an easier platform for code instrumentation, cross compilation, code sanitizers, building your own compiler tool/language, understanding the codebase, good documentation to build your own LLVM based tools...
It's a bonus that any tools/languages etc. you build using the LLVM infrastructure does not virally become GPL also.
Aparently Clang is ~5% faster than GCC (at least on intel's latest chip) -- See https://www.phoronix.com/review/intel-meteorlake-gcc-clang . Though this is not a big deal for me -- it is just nice to know.
Re:Adélie Linux
by donkeybeer on Saturday January 06, 2024 @04:02PM
(#38895428)
GPL is a positive for me. I am not sure if there is an llvm equivalent in gcc that would pose a "risk" anyways if you embark on such a project. I'll look into the instrumentation and llvm stuff, thanks.