From owner-freebsd-hackers Fri Feb 19 16:51: 4 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id 4E18211AE3 for ; Fri, 19 Feb 1999 16:50:34 -0800 (PST) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id RAA12927; Fri, 19 Feb 1999 17:50:33 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp02.primenet.com, id smtpd012798; Fri Feb 19 17:50:25 1999 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id RAA15634; Fri, 19 Feb 1999 17:50:12 -0700 (MST) From: Terry Lambert Message-Id: <199902200050.RAA15634@usr02.primenet.com> Subject: Re: [Alfred Perlstein ] Re: vm_page_zero_fill To: des@flood.ping.uio.no (Dag-Erling Smorgrav) Date: Sat, 20 Feb 1999 00:50:11 +0000 (GMT) Cc: hackers@FreeBSD.ORG In-Reply-To: from "Dag-Erling Smorgrav" at Feb 18, 99 09:20:19 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Last night i was kinda bored so i started looking for things to > optimize in freebsd, i noticed that the function src/sys/libkern/bcmp.c > looked not optimal. > > After playing with "gcc -O -S bcmp.c" on several platforms, i386, > sparc32, alpha. It seems to me that the function ought to be > replaced with this: [ ... C code elided ... ] I think that we would do well to provide C code, wherever possible, for all assmebly language code, no matter how suboptimal this ends up being. The reason for this is portability to new platforms becomes more immediate, though less optimal. The assembly code can later be "back filled", as necessary, as an optimization. The ugliest place for this type of thinking is locore.s and the bios crap, but it would speed inclusion of new platforms, and is probably worth the effort. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message