Date: Wed, 15 May 2002 06:53:10 +1000 From: Peter Jeremy <peter.jeremy@alcatel.com.au> To: Peter Wemm <peter@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/boot/i386/boot2 boot2.c Message-ID: <20020515065310.A64295@gsmx07.alcatel.com.au> In-Reply-To: <200205112149.g4BLnd747786@freefall.freebsd.org>; from peter@FreeBSD.ORG on Sat, May 11, 2002 at 02:49:39PM -0700 References: <200205112149.g4BLnd747786@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-May-11 14:49:39 -0700, Peter Wemm <peter@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515065310.A64295>
