From owner-cvs-all Tue May 14 13:53:20 2002 Delivered-To: cvs-all@freebsd.org Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by hub.freebsd.org (Postfix) with ESMTP id 165D037B401; Tue, 14 May 2002 13:53:15 -0700 (PDT) Received: from mfg1.cim.alcatel.com.au (localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.1/8.12.1/Alcanet1.2) with ESMTP id g4EKrDl0024816; Wed, 15 May 2002 06:53:13 +1000 Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37641) with ESMTP id <01KHQXDTF2W08Y5J44@cim.alcatel.com.au>; Wed, 15 May 2002 06:52:58 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.3/8.12.3) with ESMTP id g4EKrA01065039; Wed, 15 May 2002 06:53:11 +1000 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.3/8.12.3/Submit) id g4EKrAF8065038; Wed, 15 May 2002 06:53:10 +1000 (EST) Content-return: prohibited Date: Wed, 15 May 2002 06:53:10 +1000 From: Peter Jeremy Subject: Re: cvs commit: src/sys/boot/i386/boot2 boot2.c In-reply-to: <200205112149.g4BLnd747786@freefall.freebsd.org>; from peter@FreeBSD.ORG on Sat, May 11, 2002 at 02:49:39PM -0700 To: Peter Wemm Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Mail-Followup-To: Peter Wemm , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-id: <20020515065310.A64295@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5.1i References: <200205112149.g4BLnd747786@freefall.freebsd.org> X-Authentication-warning: gsmx07.alcatel.com.au: jeremyp set sender to peter.jeremy@alcatel.com.au using -f Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-May-11 14:49:39 -0700, Peter Wemm wrote: > Save about 60 bytes by #define memcpy __builtin_memcpy and removing > the function we provided. Restore the Keyboard: yes/no printf for the > probe diagnostics. We end up with 40 bytes free. More potential savings: - Change dev_nm definition to "const char dev_nm[4][] = ..." saves 7 bytes. This amounts to saving 20 bytes of pointers, but the code bloats by 13 bytes because of reversion from register-indirect to direct addressing of dev_nm in several places. (Using [3] instead of [4] actually makes things worse because *3 isn't possible in the R/I/M byte). - Change dev_maj defn to "const unsigned char dev_maj[]" saves 15 bytes. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message