Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why don\t we rewrite the Linux kernel in C++?

Kernel linux rewrite
0
Posted

Why don\t we rewrite the Linux kernel in C++?

0

• (ADB) Again, this has to do with practical and theoretical reasons. On the practical side, when Linux got started gcc didn”t have an efficient C++ implementation, and some people would argue that even today it doesn”t. Also there are many more C programmers than C++ programmers around. On theoretical grounds, examples of OS”s implemented in Object Oriented languages are rare (Java-OS and Oberon System 3 come to mind), and the advantages of this approach are not quite clear cut (for OS design, that is; for GUI implementation KDE is a good example that C++ beats plain C any day). • (REW) In the dark old days, in the time that most of you hadn”t even heard of the word “Linux”, the kernel was once modified to be compiled under g++. That lasted for a few revisions. People complained about the performance drop. It turned out that compiling a piece of C code with g++ would give you worse code. It shouldn”t have made a difference, but it did. Been there, done that. • (REG) Today (Nov-20

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123