If a Clang'ed kernel can be built *without* any major patching (with exceptions of fixing any code constructs that are workarounds for gcc-specific issues) as well as the resulting object code being tighter and faster then I can call Clang a success
Announcement
Collapse
No announcement yet.
Formalizing The LLVMLinux Project: Clang'ing Kernels
Collapse
X
-
GCC's compilation stages
Originally posted by Ericg View Post2) Clang has better diagnostics ( i know GCC 4.7 has very much improved ones, but while they were working on fixing their own, im sure Clang made theirs even better). Which means that build errors are more easily spotted, also Clang (and LLVM) compiling is done in stages, so if someone needs to jump into the middle of the compilation process they can do it with LLVM, with GCC you give it the code, hit compile and cant intervene in any way until you have the binary.
Comment
-
Originally posted by Ericg View PostC++ just got updated for 2011, and I heard something about an updated C standard),
if the extensions are truely good ideas then thy should be integrated into the standard. Which Clang would then support anyway.
Many of the extensions which actually are applicable to general C have already ended up in various C standards. You can find some GCC-innovated extensions in both C99 and C11, and possibly C89/90 as well.
There are certainly a few more that could move over, but we're not likely to see another C standard up for a very long time. C++ is trying to ramp up their release schedule after the embarrassingly long C++11 cycle, but there is little movement to make any improvements to C at a brisk pace. Particularly as all of the major OSes aside from Linux have long since stopped pretending that C is the ideal programming language, what with Microsoft not even supporting anything newer than C89 and (quite successfully) pushing C#, and with Apple pushing their Objective-C advancements, and with Google working to convince everyone that the Web is the future of everything ever forever (and otherwise being huge C++/Clang proponents for any native needs).
Comment
-
Originally posted by Ericg View Postwith GCC you give it the code, hit compile and cant intervene in any way until you have the binary.
Comment
Comment