Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Sep 1998 10:58:03 -0500
From:      Joel Ray Holveck <joelh@gnu.org>
To:        vincef@penmax.com
Cc:        dag-erli@ifi.uio.no, ormonde@aker.com.br, hackers@FreeBSD.ORG
Subject:   Re: Assembler with FreeBSD 
Message-ID:  <199809051558.KAA26686@detlev.UUCP>
In-Reply-To: Your message of "Sat, 05 Sep 1998 10:18:46 EDT." <35F14846.96A419F8@penmax.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809051558.KAA26686>