From owner-freebsd-arch@FreeBSD.ORG Sun Oct 28 05:18:57 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 272CE16A419 for ; Sun, 28 Oct 2007 05:18:57 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate4.pacific.net.sg (smtpgate4.pacific.net.sg [203.81.36.24]) by mx1.freebsd.org (Postfix) with SMTP id 2517C13C491 for ; Sun, 28 Oct 2007 05:18:55 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 27610 invoked from network); 28 Oct 2007 04:52:14 -0000 Received: from bb121-7-30-108.singnet.com.sg (HELO P2120.somewherefaraway.com) (oceanare@121.7.30.108) by smtpgate4.pacific.net.sg with ESMTPA; 28 Oct 2007 04:52:12 -0000 Message-ID: <47241574.6030402@pacific.net.sg> Date: Sun, 28 Oct 2007 12:52:04 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: Bruce M Simpson References: <4722BDBE.5030408@incunabulum.net> In-Reply-To: <4722BDBE.5030408@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arch@freebsd.org Subject: Re: C++ in the kernel X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 05:18:57 -0000 Hi, Bruce M Simpson wrote: > I was wondering if anyone had done any further thinking about this. let me put it into very simple words. From my experience using C since the late Seventies for very different software projects, I would never use C++ inside a kernel. But I encourage object orientated programming and the use of much more macros to make object orientated programming easier without using C++. A kernel should be small and its response should be predictable in all cases and at all times. This is something which is not always the case with C++. Erich > > It seems a team in Iceland succeeded in making Linux C++ enabled: > http://netlab.ru.is/exception/LinuxCXX.shtml > > Particularly interesting are the measurements for exception handling. > > The Click Modular Router is an example of a test case for C++ in both > the Linux and FreeBSD kernels. > > regards, > BMS > > > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >