Folk Theorem: Assemblers are superior to Compilers

ssimmons@convex.com (Steve Simmons)
Wed, 27 Oct 1993 14:28:59 GMT

          From comp.compilers

Related articles
Folk Theorem: Assemblers are superior to Compilers elliottm@csulb.edu (1993-10-24)
Re: Folk Theorem: Assemblers are superior to Compilers dmartin@andy.bgsu.edu (1993-10-26)
Re: Folk Theorem: Assemblers are superior to Compilers napi@cs.indiana.edu (Mohd Hanafiah Abdullah) (1993-10-26)
Folk Theorem: Assemblers are superior to Compilers ssimmons@convex.com (1993-10-27)
Re: Folk Theorem: Assemblers are superior to Compilers vick@wotangate.sc.ti.com (1993-10-27)
Re: Folk Theorem: Assemblers are superior to Compilers leichter@thorium.rutgers.edu (1993-10-27)
Re: Folk Theorem: Assemblers are superior to Compilers cliffc@rice.edu (1993-10-27)
Re: Folk Theorem: Assemblers are superior to Compilers macrakis@osf.org (1993-10-27)
Re: Folk Theorem: Assemblers are superior to Compilers amn@ubik.demon.co.uk (1993-10-27)
Re: Folk Theorem: Assemblers are superior to Compilers synaptx!thymus!daveg@uunet.UU.NET (Dave Gillespie) (1993-10-27)
[24 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: ssimmons@convex.com (Steve Simmons)
Keywords: performance, assembler
Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
References: 93-10-104
Date: Wed, 27 Oct 1993 14:28:59 GMT

> Folk Theorems
>[assembler code is 1) faster and 2) smaller than compiler code]


Given an infinite amount of time and comparable knowledge, an assembler
coder writes faster code than a C programmer because the C programmer is
constrained by the compiler. However, an assembler programmer cannot
write as fast and as compact code as a microcoder because the assembler
programmer is constrained by the architecture. The micro-coder cannot
produce as fast as a solution as a hardware engineer because the micro
coder is constrained by the bit slice technology. Get the drift... The
people at the top of the food chain have more constraints built-in.


Now, given a fixed time, the people at the top of the chain generally
produce faster solutions because they can spend more time looking at the
problem rather than fighting the technology. The correct data structures
and algorithms with decent code can always beat poor data structures and
algorithms with highly optimized code.


Most of us have schedules and need to find the most productive way of
reaching our goals.


Thank you.
Steve Simmons
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.