3 ms·
who's behind gcc? Nobody? I hear there's this kernel called Linux that depends heavily on GCC.
by jrockway 16y ago
who's behind gcc? Nobody?
I hear there's this kernel called Linux that depends heavily on GCC.
- xorglorb 16y agoClang has been able to build Linux since October of last year. http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-October/011711.html http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-October/0117...
- tedunangst 16y agoAnd Linus's feelings about that relationship are...?
- wisty 16y agoPragmatic, I would guess. "Quite frankly, I'd like there to be more competition in the open source compiler game, and that might cause some upheavals, but on the whole, gcc actually does a pretty damn good job." http://kerneltrap.org/Linux/Volatile_Performance http://kerneltrap.org/Linux/Volatile_Performance
- ch0wn 16y agoClang has support for a lot of gcc extensions: http://clang.llvm.org/docs/LanguageExtensions.html http://clang.llvm.org/docs/LanguageExtensions.html
- roel_v 16y agoBut why would the kernel depend on gcc? Are there so many gcc-isms in there that would be hard to replicate on other compilers?
- deleted 16y ago[deleted]
- adestefan 16y agoThe biggest one is (was?) the use of GNU variable length arrays. The GNU extension has different syntax than C99's variable length arrays. There are also instances of __attributes__ on platform specific code.