Messages in this thread | | | From | Barry Kelly <> | Subject | Re: C++ pushback | Date | Tue, 25 Apr 2006 21:31:31 +0100 |
| |
On Tue, 25 Apr 2006 22:20:26 +0200, "J.A. Magallon" <jamagallon@able.es> wrote:
> There is no technical argument to reject to write an OS kernel in C++. > It would not be slower nor more complicated, and it will be probably safer > because it leaves less things (from thost you always _must_ do) to > programmers memories.
In a pageable kernel, it would be harder to guarantee that virtual methods' code is paged in while locks that govern the VM are held.
Of course you could get the same problem with C and pointers to functions, but at least you could probe them explicitly. With C++, the vtable is one step removed.
-- Barry - 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/
| |