From owner-freebsd-questions Mon May 8 13:40:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 96F9E37BC1F for ; Mon, 8 May 2000 13:40:35 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e48LBTI21052; Mon, 8 May 2000 14:11:29 -0700 (PDT) Date: Mon, 8 May 2000 14:11:29 -0700 From: Alfred Perlstein To: Ben Smithurst Cc: Scott , Gustavo Vieira Goncalves Coelho Rios , shannon stees , questions@FreeBSD.ORG Subject: Re: researching FreeBSD Message-ID: <20000508141129.B17425@fw.wintelcom.net> References: <3916CF65.8BC7835A@tdnet.com.br> <20000508193701.A55455@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000508193701.A55455@strontium.scientia.demon.co.uk>; from ben@scientia.demon.co.uk on Mon, May 08, 2000 at 07:37:01PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Ben Smithurst [000508 14:06] wrote: > Scott wrote: > > > This question and your answer makes me wonder. Are there no ASM > > optimizations that have been made? > > Yes, but the vast majority of it is C. > > ben@magnesium:~$ locate "/usr/src/*.[Ss]" | wc -l > 243 > ben@magnesium:~$ locate "/usr/src/*.c" | wc -l > 7127 > > Don't take this as meaning the ratio of C to assembler is 30:1, since > the .c files may well be much bigger, the .s files are usually just > one routine which has been optimized (e.g. some libc functions in > /usr/src/lib/libc/i386). There is almost certainly more C and less > assembler than 30:1. It's also important to note that although there is quite a bit of asm (relatively speaking) a bunch of it can be attributed to hand optimized routines for which C equivelants exist for archs that don't want/have-time to hand optimize. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message