Re: Linux Kernel / C++

Drew Eckhardt (drew@poohsticks.org)
Fri, 02 Aug 1996 09:54:01 -0600


In message <Pine.LNX.3.92.960801215951.29818A-100000@micro.internexus.net>, mas
ter@internexus.net writes:
>Is it feasible to have the kernel compile just as cleanly if the compiler
>is set to g++ instead of gcc? My guess is it can be done but it would take
>an enourmous amount of changes to do it, and to have it compile cleanly.
>
>Has anyone considered moving the kernel on to C++? I'm not saying using
>objects and streams and all, that would require a complete rewrite of the
>kernel and probably end up really slow anyway.. I just think it would be
>useful to have stronger typecasting and the other features that g++
>offers, and to have it made _available_ for use in a module or whatnot.

We did it, but stopped using the C++ front end when it became apparant
that it lagged far behind the gcc C front end in terms of generating
correct code; especially with volatiles.