Re: optimizing compiler against iaverage assembly programmer.

lehotsky@tiac.net (Alan Lehotsky)
20 Jun 1997 21:41:39 -0400

          From comp.compilers

Related articles
optimizing compiler against iaverage assembly programmer. gclind01@starbase.spd.louisville.edu (1997-06-15)
Re: optimizing compiler against iaverage assembly programmer. disc@disclink.com (DISC) (1997-06-19)
Re: optimizing compiler against iaverage assembly programmer. cliffc@risc.sps.mot.com (Cliff Click) (1997-06-19)
Re: optimizing compiler against iaverage assembly programmer. gmiller@iswt.com (Greg Miller) (1997-06-20)
Re: optimizing compiler against iaverage assembly programmer. lehotsky@tiac.net (1997-06-20)
Re: optimizing compiler against iaverage assembly programmer. rnordier@iafrica.com (Robert Nordier) (1997-06-24)
Re: optimizing compiler against iaverage assembly programmer. jim-neil@digital.net (1997-06-24)
Re: optimizing compiler against iaverage assembly programmer. jbuck@synopsys.com (1997-06-24)
Re: optimizing compiler against iaverage assembly programmer. bromage@cs.mu.oz.au (1997-06-30)
Re: optimizing compiler against iaverage assembly programmer. charles.marslett@tempe.vlsi.com (1997-06-30)
Re: optimizing compiler against iaverage assembly programmer. graham.hughes@resnet.ucsb.edu (Graham C. Hughes) (1997-06-30)
[11 later articles]
| List of all articles for this month |

From: lehotsky@tiac.net (Alan Lehotsky)
Newsgroups: comp.compilers,comp.lang.asm.x86
Date: 20 Jun 1997 21:41:39 -0400
Organization: Quality Software Management
References: 97-06-071
Keywords: assembler, optimize

>>>I was thinking about the assertion 'a good optimizing compiler will
>>>nearly always outcode a moderately proficient assembly programmer'.


Let me add an anecdote on this topic.


Dave Cutler was the Chief Architect of Digital's VMS. He's also the
guy responsible for the design of Windows/NT.


Dave was one of the must incredible assembly-language coders I have
ever seen; he was incredibly prolific and generated very clever code.


Large portions of VMS were written in Bliss (a language designed
around the goal of writing optimizing compilers). The VMS library
routine fao (formatted ascii output, essentially printf()) was written
in Bliss.


Dave decided that it was TOO big, and slow, so he rewrote it in
assembly language. The version he checked in was something like 12
bytes LARGER than the compiler-generated code AND it had two bugs that
were later uncovered.


My contention is that a good programmer with an optimizing compiler
will usually beat a very good assembly language programmer in all but
the most restrictive environments (e.g. real time, limited memory and
or REALLY bizarre architectures like DSPs).


Remember that programmer time is USUALLY the quantity that is most
expensive, and in least supply. Besides there just aren't that many
assembly language programmers who really do know what they're doing!


      [I've also seen the inside of FOROTS (the DEC-10 Fortran runtime
        written by Ed Yourdon.)..it's not a pretty sight....


        I on the other hand have the advantage of relative obscurity;
        very few people are likely to remember what the code I write looks
        like :-)]


-- Al Lehotsky
[Oh yeah? The elephant never forgets. -John]




--


Post a followup to this message

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