From owner-freebsd-arch@FreeBSD.ORG Fri Nov 2 20:53:16 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 9829216A41A; Fri, 2 Nov 2007 20:53:16 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id A3A1713C48A; Fri, 2 Nov 2007 20:53:15 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 3C65717105; Fri, 2 Nov 2007 20:52:53 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id lA2Kqp4p004756; Fri, 2 Nov 2007 20:52:52 GMT (envelope-from phk@critter.freebsd.dk) To: Alfred Perlstein From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 02 Nov 2007 13:38:03 MST." <20071102203803.GO77844@elvis.mu.org> Date: Fri, 02 Nov 2007 20:52:51 +0000 Message-ID: <4755.1194036771@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Bruce M Simpson , 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: Fri, 02 Nov 2007 20:53:16 -0000 In message <20071102203803.GO77844@elvis.mu.org>, Alfred Perlstein writes: >A policy that might be interesting is to do something along >the lines of what we do with GPL, basically, core code in the >kernel can not be based on nor depend on it. I don't know if this is realistically possible, without some kind of intermediate layer to translate, for instance inline assembly. But apart from it being a lot of, currently, pointless work that would really gain us anything, as long as no viable competitors to GCC exists, I fully agree: Either you take portability seriously (ie: run with any compiler) or you handle portability seriously (ie: run it through our frontend, so any compiler can cope). But in any case, this is all very theoretical until there are a non-comical alternative compiler for us. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.