Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965045AbWEBXzW (ORCPT ); Tue, 2 May 2006 19:55:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965042AbWEBXzW (ORCPT ); Tue, 2 May 2006 19:55:22 -0400 Received: from omta04sl.mx.bigpond.com ([144.140.93.156]:61390 "EHLO omta04sl.mx.bigpond.com") by vger.kernel.org with ESMTP id S965045AbWEBXzV (ORCPT ); Tue, 2 May 2006 19:55:21 -0400 Message-ID: <4457F166.10408@bigpond.net.au> Date: Wed, 03 May 2006 09:55:18 +1000 From: Peter Williams User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Al Boldi CC: Christer Weinigel , linux-kernel@vger.kernel.org Subject: Re: Compiling C++ modules References: <200605022121.44831.a1426z@gawab.com> In-Reply-To: <200605022121.44831.a1426z@gawab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at omta04sl.mx.bigpond.com from [147.10.133.38] using ID pwil3058@bigpond.net.au at Tue, 2 May 2006 23:55:19 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2066 Lines: 68 Al Boldi wrote: > Christer Weinigel wrote: > >>>eCos is nice enough -- because it's mostly C :) >> >>And those parts that are C++ (from a 2 year old eCos dist) won't >>compile with a modern g++. > > > C++ is OO, But not a very good implementation of it :-(. > and OO is great! OO is the natural way of doing things, and > allows one to concentrate on the issues at hand, while leaving the > nitty-gritty to the compiler to decide. > > And this is the problem, as kernel development is highly sensitive to > compiler output, and which is why there are parts written in asm and others > in C. > > So rewriting C with C++ would be as dumb as rewriting asm with C. > > But there may be certain higher level parts in the kernel that could benefit > from rewriting C with C++, much the same as lower level parts have benefited > from rewriting them in asm. > > So we have a situation like this: > > low-level written in asm when needed > > main-level written in C mostly > > high-level written in C++ when needed > > Note though, C++ is not currently viable for kernel development, due to its > enormous overhead generated by immature compiler technology. Once this has > matured, there should be no problem. > > >>-- >>"Just how much can I get away with and still go to heaven?" > > > Just know that HE is one and only one. > > Thanks! > > -- > Al > > - > 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/ -- Peter Williams pwil3058@bigpond.net.au "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce - 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/