From owner-freebsd-arch@FreeBSD.ORG Thu Nov 15 18:15:08 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 49E6F16A579 for ; Thu, 15 Nov 2007 18:15:08 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from qsrv01sl.mx.bigpond.com (qsrv01sl.mx.bigpond.com [144.140.92.181]) by mx1.freebsd.org (Postfix) with ESMTP id 66CFE13C46A for ; Thu, 15 Nov 2007 18:15:06 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from oaamta04sl.mx.bigpond.com ([124.188.162.219]) by omta02sl.mx.bigpond.com with ESMTP id <20071115130340.UFWU22254.omta02sl.mx.bigpond.com@oaamta04sl.mx.bigpond.com> for ; Thu, 15 Nov 2007 13:03:40 +0000 Received: from areilly.bpa.nu ([124.188.162.219]) by oaamta04sl.mx.bigpond.com with ESMTP id <20071115130340.UGHH11084.oaamta04sl.mx.bigpond.com@areilly.bpa.nu> for ; Thu, 15 Nov 2007 13:03:40 +0000 Received: (qmail 71884 invoked by uid 501); 15 Nov 2007 13:00:58 -0000 Date: Fri, 16 Nov 2007 00:00:58 +1100 From: Andrew Reilly To: "M. Warner Losh" Message-ID: <20071115130058.GA71758@duncan.reilly.home> References: <4722BDBE.5030408@incunabulum.net> <20071028.000300.-861062412.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071028.000300.-861062412.imp@bsdimp.com> User-Agent: Mutt/1.4.2.3i Cc: bms@incunabulum.net, 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: Thu, 15 Nov 2007 18:15:08 -0000 On Sun, Oct 28, 2007 at 12:03:00AM -0600, M. Warner Losh wrote: > In message: <4722BDBE.5030408@incunabulum.net> > Bruce M Simpson writes: > : It seems a team in Iceland succeeded in making Linux C++ enabled: > > Most people on this list haven't had experience with eC++. In this > environment, a number of the features of the language are omitted to > be better suited to the embedded environment. > > If it were up to me, I wouldn't bother with supporting exception. > They are one of the areas that are abused that have dire consequences > when abused (uncaught exceptions are evil, for example). Rtti was > also omitted from eC++ as well. These things help debloat the > language and can be used to good effect. Could that be done with cfront (C++ to C translation)? From memory, cfront didn't do exceptions or rtti either, as they had not been invented yet. -- Andrew