From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K8oyw-0003ZJ-Fq for mharc-grub-devel@gnu.org; Wed, 18 Jun 2008 00:09:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8oyv-0003ZD-87 for grub-devel@gnu.org; Wed, 18 Jun 2008 00:09:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8oyu-0003Z1-4V for grub-devel@gnu.org; Wed, 18 Jun 2008 00:09:12 -0400 Received: from [199.232.76.173] (port=33321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8oyt-0003Yy-UI for grub-devel@gnu.org; Wed, 18 Jun 2008 00:09:11 -0400 Received: from c60.cesmail.net ([216.154.195.49]:16637) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1K8oyt-00056x-BT for grub-devel@gnu.org; Wed, 18 Jun 2008 00:09:11 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 18 Jun 2008 00:09:10 -0400 Received: from [192.168.1.46] (pool-96-227-16-219.phlapa.east.verizon.net [96.227.16.219]) by relay.cesmail.net (Postfix) with ESMTP id 7CEFD619058 for ; Wed, 18 Jun 2008 00:09:10 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: References: <48583C04.219093.22092@m12-68.163.com> Content-Type: text/plain Date: Wed, 18 Jun 2008 00:09:10 -0400 Message-Id: <1213762150.2940.15.camel@rd> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 (2.22.2-2.fc9) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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 04:09:13 -0000 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. -- Regards, Pavel Roskin