From owner-freebsd-hackers Sat Sep 5 08:59:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA06657 for freebsd-hackers-outgoing; Sat, 5 Sep 1998 08:59:28 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.camalott.com (mail.camalott.com [208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA06652 for ; Sat, 5 Sep 1998 08:59:26 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-54.camalott.com [208.229.74.54]) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id LAA16516; Sat, 5 Sep 1998 11:00:07 -0500 Received: from detlev.UUCP (localhost.UUCP [127.0.0.1]) by detlev.UUCP (8.9.1/8.9.1) with ESMTP id KAA26686; Sat, 5 Sep 1998 10:58:05 -0500 (CDT) (envelope-from detlev!joelh) Message-Id: <199809051558.KAA26686@detlev.UUCP> To: vincef@penmax.com cc: dag-erli@ifi.uio.no, ormonde@aker.com.br, hackers@FreeBSD.ORG Subject: Re: Assembler with FreeBSD In-reply-to: Your message of "Sat, 05 Sep 1998 10:18:46 EDT." <35F14846.96A419F8@penmax.com> From: Joel Ray Holveck Date: Sat, 05 Sep 1998 10:58:03 -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> More specifically, many things that were best done in assembler on DOS >> are better done in C on Unix. I am going to write a web page later >> tonight that addresses the differences between DOS and Unix assembler >> codes, and will be sure to post the URL. > I've found that although it's MUCH easier in C, it isn't faster. A > human can optimize much better than an automated compiler. Well, > that is IF they know what they're doing... And IF they take the time to examine peepholes, and IF they chose to work out the times that instructions will lock registers and break piplining, and IF... It is nice to examine your assembler code. To consider it when you write your C. But instruction ordering alone is difficult enough to work out by hand, I'd rather use the assembler. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message