TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Custom compiler for Linux kernel? It could happen

38 pointsby epallabout 16 years ago

6 comments

SwellJoeabout 16 years ago
There have been briefly existent gcc forks in the past, specifically for kernel compilation on various distros.<p>I suspect there probably will come a time when gcc is replaced. Possibly by an LLVM compiler like clang. But, the likelihood of a from-scratch C compiler just for the kernel seems very low, to me. Yes, the kernel developers could do it. And, yes, Ingo is one of the most productive developers in the world, and if he got it into his head to make such a thing happen (despite the general mood of the community being against such an idea), he could probably do a large percentage of it on his own. But, it's just a very large undertaking, and the things that we all find irritating about gcc are often the things that make it suitable for so many situations and architectures (edge cases are ugly but necessary when talking about supporting huge numbers of architectures).
derefrabout 16 years ago
If they're going to write their own compiler/linker/assembler suite, why even bother remaining compatible with C? Why not just create a specifically-optimized "kernel-ese" DSL?
评论 #582585 未加载
DanHultonabout 16 years ago
Well, actually if you follow the comment thread - it's not really likely. Most folk are clamoring about how poor an idea this is.
anthonyrubinabout 16 years ago
<a href="http://wiki.freebsd.org/BuildingFreeBSDWithClang" rel="nofollow">http://wiki.freebsd.org/BuildingFreeBSDWithClang</a>
评论 #582550 未加载
andrabout 16 years ago
Whatever the case, it would be significantly easier to correct GCC's shortcomings instead of starting afresh (and facing all those shortcomings, and others, again).
评论 #582140 未加载
Ennisabout 16 years ago
I remember coding together a compiler using flex and bison. It was a nightmare. This definitely is not a short term task. Frankly I don't think the commitment is there from the community. Not yet at least.<p>Then again, gcc breakage is ridiculously common. It's got to be tackled at some point.
评论 #582437 未加载