From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 05:31:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 077A316A4BF for ; Fri, 5 Sep 2003 05:31:09 -0700 (PDT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id C57A244008 for ; Fri, 5 Sep 2003 05:31:07 -0700 (PDT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) h85CV6lc045090; Fri, 5 Sep 2003 14:31:06 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.9/8.12.9/Submit) id h85CV0ID045089; Fri, 5 Sep 2003 14:31:00 +0200 (CEST) (envelope-from marius) Date: Fri, 5 Sep 2003 14:31:00 +0200 From: Marius Strobl To: Bruce Evans Message-ID: <20030905143100.D15905@newtrinity.zeist.de> References: <20030904180448.021a1b6b.Alexander@Leidinger.net> <20030905001411.3a9030b3.Alexander@Leidinger.net> <20030905025922.A68885@newtrinity.zeist.de> <20030905011902.GA955@athlon.pn.xcllnt.net> <20030905180200.D9084@gamplex.bde.org> <20030905192554.Q9277@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030905192554.Q9277@gamplex.bde.org>; from bde@zeta.org.au on Fri, Sep 05, 2003 at 07:34:39PM +1000 cc: Alexander Leidinger cc: current@freebsd.org cc: Marcel Moolenaar Subject: Re: Question about genassym, locore.s and 0-sized arrays(showstopper for an icc compiled kernel) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 12:31:09 -0000 On Fri, Sep 05, 2003 at 07:34:39PM +1000, Bruce Evans wrote: > On Fri, 5 Sep 2003, I wrote: > > > ... > > If some values are unrepresentable then they need to be represtended > > using other values. E.g., add 1 to avoid 0, or multiply by the alignment > > size if some element of the tool chanin instsists on rounding up things > chain insists > > for alignment like a broken aout version used to do. 16-bit values > > would need 17 bits to represent after adding 1. > > Better, add 0x10000 to avoid 0. awk has no support for parsing hex numbers > so subtracting the bias of 1 would take a lot more code, but ignoring > leading hexdigits requires no changes in genassym.sh -- it already ignores > everything except the last 4 hexdigits. > This works, too. Thanks for the detailed explanation Bruce!