Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MTdBF-0004Fa-Nh for mharc-grub-devel@gnu.org; Wed, 22 Jul 2009 10:52:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTdBE-0004Ee-0g for grub-devel@gnu.org; Wed, 22 Jul 2009 10:52:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTdB9-0004Ds-FU for grub-devel@gnu.org; Wed, 22 Jul 2009 10:52:27 -0400 Received: from [199.232.76.173] (port=48337 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTdB9-0004Dp-C1 for grub-devel@gnu.org; Wed, 22 Jul 2009 10:52:23 -0400 Received: from mail-px0-f193.google.com ([209.85.216.193]:47527) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTdB8-0006Br-Vu for grub-devel@gnu.org; Wed, 22 Jul 2009 10:52:23 -0400 Received: by pxi31 with SMTP id 31so170045pxi.14 for ; Wed, 22 Jul 2009 07:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tVbK5tSYc4zWXGAsp/orVmsxHLXSKnhw1mG/4BVgUKI=; b=a/9yt2uigeblG/TSZ5mY+FCBahAHEWW1xlZ3pOnZWQvTUWxRRPQCCvBjfANja1PEFn fgG6lgsIqYd5IRTgHoa9E4suD4L/j/riuGjFNy8qLrh97hLbq7OXzY4MBWyeJIxtH6Cb s/RakE/AsDa/Dk25MpY0QdepCR5qMVbJE0EX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dwuz7BDeOpRaCZ5wdZMokiMklSbv/CY1V/RjaYeQ4LFn5zOk4xwWMKEmRhfwiTJxdU jJvnXsK8xKCJ/yXGp9eDs+nYBbL9oBSMnLcNAkA4xDpgIF/WAesrKeUwN7G7YqyRc0Nn oHQMOvfJ473HKBEuGWnnTJEheMJuSkSds6LCM= MIME-Version: 1.0 Received: by 10.114.178.14 with SMTP id a14mr655629waf.15.1248274341986; Wed, 22 Jul 2009 07:52:21 -0700 (PDT) In-Reply-To: <1248270128.10302.14.camel@accesodirecto.casa> References: <4A627C5A.5070700@isaac.cedarswampstudios.org> <1248263254.10302.11.camel@accesodirecto.casa> <1248270128.10302.14.camel@accesodirecto.casa> Date: Wed, 22 Jul 2009 22:52:21 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] New object format 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, 22 Jul 2009 14:52:28 -0000 Hi, >> Oh, thanks for the note. In fact, we can use =A0GRUB_CPU_SIZEOF_LONG, >> its value is GRUB_TARGET_SIZEOF_LONG when building target, and >> SIZEOF_LONG when building utilities. > Wonderful idea. I'm researching this for a possible implementation of a > GRUB equivalent to the C99 fixed-length integers print specifiers like > PRIx64. It would most likely go into , so I'm paying > special attention to anyone working on that file. Yeah, that would be very useful, most warning message from mingw64 is caused by grub_printf format. > >> As GRUB_CPU_SIZEOF_LONG =A0doesn't necessary equal to >> GRUB_CPU_SIZEOF_VOID_P. (It actually avoid this by generating an >> #errror message when GRUB_CPU_SIZEOF_VOID_P !=3D GRUB_CPU_SIZEOF_LONG). > I think you lost me here. This check is in the trunk GRUB, but not in > your "lib" branch, and actually it would make it impossible to build on > mingw64, where void* is 64-bit and long is 32-bit. The check is in svn trunk so that you can't compile at all, I remove it in my lib branch so that it can be compiled in mingw64. --=20 Bean