Re:Custom compiler for Linux kernel? It could happen
by derefr on Monday April 27, 2009 @09:06PM
(#582450)
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?
[ Parent
| on HN ]
Re:Custom compiler for Linux kernel? It could happen
by scott_s on Monday April 27, 2009 @10:50PM
(#582585)
But that's what C is.
edit: my argument can be summarized in sections 1 and 2 in an essay I wrote for a class a year ago: http://people.cs.vt.edu/~scschnei/ece5530/languages.pdf
Re:Custom compiler for Linux kernel? It could happen
by wmf on Monday April 27, 2009 @11:21PM
(#582625)
OTOH several other OS projects have their own DSLs: Oberon, Vault, BitC, and Sing#.
Re:Custom compiler for Linux kernel? It could happen
by scott_s on Tuesday April 28, 2009 @09:47AM
(#583091)
I think we're abusing the title "Domain Specific Language." I'm only familiar with BitC and Sing# on that list, but I call those systems programming languages. Granted, one could consider systems programming the domain, but since systems programming is so ubiquitous in computing and for a long time that was the only kind of programming, I think it's inaccurate to call those DSLs.
Anyway, with the exception of Oberon, the others are still research projects. I don't think a research language is appropriate for implementing the Linux kernel.
I do hope that in the future, something as important as the Linux kernel is implemented with a modern systems programming language - it would indicate progress - but Linux is an immediate need.