Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GuLZY-0004Vc-9k for mharc-grub-devel@gnu.org; Tue, 12 Dec 2006 23:18:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuLZW-0004TU-NW for grub-devel@gnu.org; Tue, 12 Dec 2006 23:18:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuLZV-0004Qz-AO for grub-devel@gnu.org; Tue, 12 Dec 2006 23:18:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuLZU-0004QV-NK for grub-devel@gnu.org; Tue, 12 Dec 2006 23:18:20 -0500 Received: from [207.69.195.63] (helo=pop-satin.atl.sa.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GuLZU-0002eB-ML for grub-devel@gnu.org; Tue, 12 Dec 2006 23:18:20 -0500 Received: from user-0vvdf2d.cable.mindspring.com ([63.246.188.77] helo=diesel.unsanctioned.org) by pop-satin.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1GuLZU-0006Ae-00 for grub-devel@gnu.org; Tue, 12 Dec 2006 23:18:20 -0500 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <200612122308.26778.okuji@enbug.org> References: <1163545104.12931.49.camel@basalt> <200612052104.58254.okuji@enbug.org> <1165531179.8900.24.camel@basalt> <200612122308.26778.okuji@enbug.org> Content-Type: text/plain Date: Tue, 12 Dec 2006 22:18:19 -0600 Message-Id: <1165983499.10549.16.camel@diesel> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Subject: Re: multiboot2: make multiboot header optional 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, 13 Dec 2006 04:18:22 -0000 On Tue, 2006-12-12 at 23:08 +0100, Yoshinori K. Okuji wrote: > On Thursday 07 December 2006 23:39, Hollis Blanchard wrote: > > I thought we had two options: embedding tags, or ORing bits into an > > embedded long. When I suggested embedding tags, you told me it was too > > complicated so will cause developer errors. Have I misunderstood? > > I meant that the complexity of using bitfields plus a fixed-size structure is > identical to that of using tags. But I bet that it is more complicated to use > tags _by hand_. For me, "complex" and "complicated" are quite different. > > Besides how to make it look easier by predefined macros, please consider the > spec itself. With bitfields and fixed-size fields, all you must remember is: > > - What bits mean what > > - How to order values passed to a boot loader > > With tags, you need to remember: > > - What tags mean what > > - What tag size is expected to each tag > > - What tags must be combined with a given tag > > If you generate tags by programming, I don't think the use of tags is more > complicated. It can be even easier for a parser. However, when specifying > tags by hand, I cannot believe that it is as straightforward as using fields. > > If you allow me to use a "big gun", I would tell you that most system > programmers are used to fields, while they are not familar with writing tags. I'm willing to go along with this, since I realized that only a tiny number of people will need to use this flags (and that number does not include me :). It seemed to work for GRUB Legacy, so I guess it can work here too. My loader code doesn't currently read either tags or flags, and since most people don't need this functionality I plan to check it in without that; it can be added later as needed. -Hollis