Messages in this thread | | | Date | Thu, 16 Dec 2004 20:37:34 +0000 | From | "H. Peter Anvin" <> | Subject | Re: What if? |
| |
Alan Cox wrote: > On Iau, 2004-12-16 at 02:44, H. Peter Anvin wrote: > >>Yes, but there is also no really big deal compiling C code with a C++ >>compiler. Yes, it was a disaster in 0.99.14, but that was 10 years ago. > > > g++ is still much slower. We don't know how many bugs it would show up > in the compiler and tools either, especially on embedded platforms. > Finally the current kernel won't go through a C++ compiler because we > use variables like "new" quite often.
-Dnew=_New, problem solved.
I'm not in any way advocating compiling with g++ exclusively, but it would be nice to be *able to* for bugchecking. It would be an interesting experiment, of nothing else. I suspect it'd require some minor code tweaks and turn up a small handful of bugs right off the bat.
-hpa
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |