Related articles |
---|
[4 earlier articles] |
Re: Is this a new idea? ryer@inmet.camb.inmet.com (1992-11-03) |
Re: Is this a new idea? byron@netapp.com (Byron Rakitzis) (1992-11-04) |
Re: Is this a new idea? ttk@ucscb.UCSC.EDU (1992-11-04) |
Re: Is this a new idea? dak@sq.sq.com (1992-11-04) |
Re: Is this a new idea? dnl@macsch.com (1992-11-04) |
Re: Is this a new idea? tmb@arollaidiap.ch (1992-11-06) |
Re: Is this a new idea? henry@zoo.toronto.edu (1992-11-08) |
Re: Is this a new idea? clyde@hitech.com.au (1992-11-07) |
Re: Is this a new idea? dlarsson%abbaut@Sweden.EU.net (1992-11-11) |
Re: Is this a new idea? macrakis@osf.org (1992-11-11) |
Re: Is this a new idea? pardo@cs.washington.edu (1992-11-12) |
Re: Is this a new idea? thinkage!dat@math.uwaterloo.ca (1992-11-11) |
Re: Is this a new idea? andrewb@lynx.cs.washington.edu (1992-11-16) |
[4 later articles] |
Newsgroups: | comp.compilers |
From: | henry@zoo.toronto.edu (Henry Spencer) |
Organization: | U of Toronto Zoology |
Date: | Sun, 8 Nov 1992 04:36:51 GMT |
References: | 92-10-113 92-11-009 |
Keywords: | parse, performance |
>[Scanning and parsing can be as much as half of the total time that a
>compiler takes (so says Ken Thompson of his Plan 9 C compiler) and that is
>quite amenable to incremental precalculation. -John]
Although the Plan 9 compiler is a very interesting design and the paper on
it is very much worth reading, some of the comments need to be taken with
a grain of salt. He isn't doing ambitious optimization (note that he
ignores `volatile' entirely), which will surely influence the distribution
of time among phases.
I also recall a case (not a compiler and not Ken Thompson) where an
authoritative claim was made that a precompiled binary format was
necessary because re-reading the text file each time was too slow... and
on examination this appeared to be mostly the result of an input parser
written so ineptly that it bordered on incompetence. For the code I had
to write, I ignored the precompiled binary -- its format was complicated
and inconvenient -- and re-read the text file. The performance impact was
unnoticeable.
--
Henry Spencer @ U of Toronto Zoology, henry@zoo.toronto.edu utzoo!henry
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.