Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K91ti-0001pO-Bk for mharc-grub-devel@gnu.org; Wed, 18 Jun 2008 13:56:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K91th-0001pF-Ev for grub-devel@gnu.org; Wed, 18 Jun 2008 13:56:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K91th-0001p2-1C for grub-devel@gnu.org; Wed, 18 Jun 2008 13:56:41 -0400 Received: from [199.232.76.173] (port=43140 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K91tg-0001oz-S0 for grub-devel@gnu.org; Wed, 18 Jun 2008 13:56:40 -0400 Received: from ns39764.ovh.net ([91.121.25.85]:36555 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K91tf-0003Bj-Qr for grub-devel@gnu.org; Wed, 18 Jun 2008 13:56:40 -0400 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 155FC3D985 for ; Wed, 18 Jun 2008 20:00:31 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 18 Jun 2008 19:56:37 +0200 User-Agent: KMail/1.9.9 References: <48583C04.219093.22092@m12-68.163.com> <1213762150.2940.15.camel@rd> In-Reply-To: <1213762150.2940.15.camel@rd> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806181956.37526.okuji@enbug.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Can grub2 support c++ module? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 17:56:41 -0000 On Wednesday 18 June 2008 06:09:10 Pavel Roskin wrote: > On Wed, 2008-06-18 at 10:22 +0800, y.volta wrote: > > Hi, > > > > I just wondering, can grub2 support module coded with c++? Let's > > suppose we are trying to apply the fancy menu. ;-) > > I think it can be done, but you'll need to disable exception handling > and RTTI. You won't be able to use any C++ libraries. The build system > will need to be changed to call C++ compiler when needed. > > Still, I think it would be an overkill. C is quite good for large > projects if used properly. Linux is fine with C. C also has checkers > such as sparse, but I'm not aware of C++ equivalents. When Vesa tried C++, the binary size got bloated, so it was abandoned. I am afraid that C++ adds too much overhead. Okuji