kern/99979: Get Ready for Kernel Module in C++

M. Warner Losh imp at
Tue Jul 11 16:14:57 UTC 2006

In message: <44B2D2DF.2000401 at>
            Václav Haisman <V.Haisman at> writes:
: Deciding that some features are bad beforehand, before you evaluate them
: is IMO bad idea. Let interested people write a bunch of C++ modules with
: the complete language before deciding on what shouldn't be used.

There's actually a fair amount of experience with people doing C++ in
FreeBSD kernels.  People have been doing things with it for about 8
years now.  There are significant performance issues with even C code
compiled as C++.  It is possible to write fast C++ for kernel work,
but it is also very easy to write really bad C++ for kernel work.
Easier than bad C code.

There's reasons that people here are somewhat skeptical about using
C++ in the kernel.


More information about the freebsd-hackers mailing list