Re: Code Opt. in One-pass Compilation

Henry Spencer <henry@zoo.toronto.edu>
9 Aug 1996 14:04:58 -0400

          From comp.compilers

Related articles
Code Opt. in One-pass Compilation yeh@ga.unc.edu (1996-07-24)
Re: Code Opt. in One-pass Compilation 0002083004@mcimail.com (Tom Hawker) (1996-07-26)
Re: Code Opt. in One-pass Compilation hbaker@netcom.com (1996-07-27)
Re: Code Opt. in One-pass Compilation domjan@inf.ethz.ch (1996-07-31)
Re: Code Opt. in One-pass Compilation p.froehlich@amc.cube.net (1996-08-04)
Re: Code Opt. in One-pass Compilation henry@zoo.toronto.edu (Henry Spencer) (1996-08-09)
| List of all articles for this month |
From: Henry Spencer <henry@zoo.toronto.edu>
Newsgroups: comp.compilers
Date: 9 Aug 1996 14:04:58 -0400
Organization: SP Systems, Toronto
References: 96-07-187 96-07-192 96-08-015
Keywords: optimize, performance

p.froehlich@amc.cube.net (Peter Froehlich) writes:
>...it's still small and fast when compared to compilers for
>languages like C or ADA. This is mainly because of the language design
>(IMHO) but also because they use resources quite economically.


I think it's worth expanding on this last a bit. The most important issue
in making compilers fast is not language design or intermediate forms or
genius implementors -- it's concern for performance. Actually, this
generalizes to almost all software. As Geoff Collyer and I wrote ten
years ago: "Programs will seldom run faster unless you care about making
them run faster."


The overwhelming majority of today's software is slow simply because its
implementors didn't care. The techniques of performance engineering are
not widely known, but most of them are not exactly rocket science -- you
just have to think hard about how to make things faster. Few people do;
the average piece of "mature" software can be sped up by amazing amounts
if someone makes a determined effort.


For background on performance engineering, I suggest Jon Bentley's
"Writing Efficient Programs" (Prentice-Hall, 1982) and Collyer&Spencer's
"News Need Not Be Slow" (Winter 1987 Usenix Conference Proceedings).
(Other references welcome; those were just the two that came to mind.)
--
| Henry Spencer
| henry@zoo.toronto.edu
--


Post a followup to this message

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