Dispatches from the compiler front
Dispatches from the compiler front
Posted Apr 15, 2010 20:10 UTC (Thu) by Cyberax (✭ supporter ✭, #52523)In reply to: Dispatches from the compiler front by da4089
Parent article: Dispatches from the compiler front
However, it has a kernel of truth. You need to write quite complex algorithms in compilers which have to traverse trees, annotating its nodes with complex structures, etc. It all looks quite clumsy in C (C++ in LLVM is much better).
In comparison, Linux kernel doesn't really has that kind of complex algorithms. The closest thing in complexity is the scheduler, which still is a frequent source of problems in Linux.
Personally I prefer OCaml for that kind of things. Pattern matching is the killer feature for compiler writers :)
For example: http://llvm.org/docs/tutorial/index.html
