From owner-freebsd-arch Wed Dec 20 15:36: 4 2000 From owner-freebsd-arch@FreeBSD.ORG Wed Dec 20 15:36:02 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id 4D6D137B400 for ; Wed, 20 Dec 2000 15:36:02 -0800 (PST) Received: by mail.jeamland.net (Postfix, from userid 1000) id 7F91A70601; Thu, 21 Dec 2000 10:35:49 +1100 (EST) Date: Thu, 21 Dec 2000 10:35:49 +1100 From: Benno Rice To: freebsd-arch@FreeBSD.ORG Subject: Re: gensetdefs using sh(1),sed(1),grep(1) and awk(1) Message-ID: <20001221103548.A10223@rafe.jeamland.net> References: <3A405A43.5C10697C@cup.hp.com> <20001219233816.H19572@fw.wintelcom.net> <3A40F2EB.C43F0A88@cup.hp.com> <20001220103154.A9294@dragon.nuxi.com> <3A410ACB.3CB3C32@cup.hp.com> <20001220115432.B10298@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001220115432.B10298@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Wed, Dec 20, 2000 at 11:54:32AM -0800 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Dec 20, 2000 at 11:54:32AM -0800, David O'Brien wrote: > On Wed, Dec 20, 2000 at 11:38:51AM -0800, Marcel Moolenaar wrote: > > The posted perl(1) and awk(1) versions should tell you what is required. > > These scripts are derived from our current C implementation in /usr/bin. > > Yes, and I still fail to see why one cannot build a gensetdefs binary > (ie, from C source) for the target machine manually and use that. From > the looks of it that is what DFR did for his IA-64 work. Because the current gensetdefs will refuse to deal with a target endianness that's different to the host's. This is why I put my support behind it in the first place. Note that personally I dislike perl, but I think that the perl version is far more readable than the sh one. If someone were to extend the C version to handle endian differences, I'd be more than happy to see that go in though. Basically, I don't care how it works, as long as it works and is maintainable. =) -- Benno Rice benno@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message