[lkml]   [2000]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Criticism] On the discussion about C++ modules
** Reply to message from "Jeff V. Merkey" <> on Sun, 15
Oct 2000 18:06:05 -0600

> The [new] and constructor/destructor operations create hidden memory
> allocations in C++ that can blow performance in kernel "fast paths".

I don't consider the memory allocation that [new] and constructor/destructor
operations perform to be "hidden". In fact, anyone who thinks that [new]
doesn't allocate memory is a moron. [new] is nothing more than a malloc
followed by an indirect function call with a single pointer parameter passed.
There's nothing hidden or secret about that.

However, I do agree that for many kernel operations, C++ doesn't help any.
However, that doesn't mean that people writing device drivers should be
excluded from using C++. Having known C++ keywords in header files, and
refusing to change them because you don't want other people using C++, is
selfish and narrow-minded and not something that a Linux programmer should be
proud of.

Timur Tabi -
Interactive Silicon -

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.252 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site