Re:Clang (LLVM C compiler) builds a working Linux kernel
by praptak on Tuesday October 26, 2010 @08:49AM
(#1833952)
Even better, it could compile and boot Linux directly from its source code: http://bellard.org/tcc/tccboot.html
Re:Clang (LLVM C compiler) builds a working Linux kernel
by mahmud on Tuesday October 26, 2010 @08:58PM
(#1836818)
I don't think tinycc and llvm are even in the same league in terms of optimizations.
Tinycc is, well, tiny. You can get a working compiler just using syntax-directed translation schemes and it would compile any valid program. The output would even boot, but it would make baby-Muchnick cry.
Re:Clang (LLVM C compiler) builds a working Linux kernel
by mhd on Wednesday October 27, 2010 @06:42PM
(#1840773)
True, no one is comparing their performance characteristics, it's just that getting the Linux kernel to compile isn't a unique feat where you need to be on the same level as gcc and llvm. You "just" need ANSI C with GNU extensions. And not break on a couple dozen corner cases.
[1]: http://bellard.org/tcc/