From owner-freebsd-questions Mon May 8 20: 4: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.hutchtel.net (ns1.hutchtel.net [206.9.112.100]) by hub.freebsd.org (Postfix) with ESMTP id 2F83E37B878 for ; Mon, 8 May 2000 20:03:57 -0700 (PDT) (envelope-from jpaetzel@hutchtel.net) Received: from blah (hutch-143.hutchtel.net [206.10.67.43]) by ns1.hutchtel.net (8.9.1/8.9.0) with SMTP id WAA27830; Mon, 8 May 2000 22:03:52 -0500 (CDT) Message-ID: <010701bfb899$fef8f9a0$625662d1@visi.com> From: "Josh Paetzel" To: "Alfred Perlstein" Cc: References: <3916CF65.8BC7835A@tdnet.com.br> <20000508193701.A55455@strontium.scientia.demon.co.uk> <20000508141129.B17425@fw.wintelcom.net> Subject: Re: researching FreeBSD Date: Sun, 7 May 2000 22:03:32 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 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. > > Doesn't this have to do with portability? I thought the reason we liked to stay away from assembly was to make it easier to switch platforms. (at the source code level) > > 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 - > Josh I write all my device drivers in logo. pen down color=blue f20 rotate 30 f10 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message