Re: C++ in kernel (was Re: exception in a device driver)

Eric Princen (eprincen@maad.com)
Thu, 7 Jan 1999 17:42:48 -0700


I'd hate to see that. This comes from a strictly C++ programmer. Sure it's
good for big projects, but the kernel is a different beastie. What is there
to gain? The kernel already does lots of things in an object oriented type
manner. You don't really gain that. Exceptions? The kernel seems to work
fine without them. STL? In enjoy the STL. In the kernel? No thank you. I did
embedded systems work a while back and most of it was in asm. I would have
loved to use C back then, but as much as I love C++ for apps, I wouldn't
want to use it so close to the hardware and in timing critical paths.
Inefficiencies creep in with C++. They are not as critical with most big
apps, but they probably would prove to be in the kernel.

Use the tool that best suits the job. It would be a tough job to convince
anyone that matters that C++ is the best tool for the kernel.

-Eric ;-)

--
Eric Princen
Micro Analysis & Design
http://www.maad.com/~eprincen (still temporarily down... I'm really busy.
:-)
"Windows 98 is less an operating system than an Internet Explorer delivery
device"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/