home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!spdcc!iecc!compilers-sender
- From: clyde@hitech.com.au (Clyde Smith-Stubbs)
- Newsgroups: comp.compilers
- Subject: Re: Is this a new idea?
- Keywords: performance, parse
- Message-ID: <92-11-034@comp.compilers>
- Date: 7 Nov 92 10:16:38 GMT
- Article-I.D.: comp.92-11-034
- References: <92-10-113@comp.compilers> <92-11-009@comp.compilers>
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: clyde@hitech.com.au (Clyde Smith-Stubbs)
- Organization: HI-TECH Software, Brisbane, QLD, Australia.
- Lines: 26
- Approved: compilers@iecc.cambridge.ma.us
-
- >[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]
-
- _Can_ is the operative word here: with our compilers it is not that big a
- proportion, but in any case, even parsing is context dependent, i.e. you
- can't parse code that contains references to such things as typedefs that
- occur earlier in the code, if the typedef is missing or in the middle of
- being edited. Lexical analysis can be done to a greater degree on an
- incomplete program, although in most C compilers even the lexical phase is
- context sensitive.
-
- A pre-parsing scheme combined with a "quick and dirty" code generator
- could certainly reduce edit-compile-debug cycle time, but I stand by my
- earlier point that increasing machine speed is affecting this more than
- incremental compiler technology is likely to.
-
- I like the idea of a syntax-directed editor, but for reasons of minimizing
- silly errors (unmatched braces etc.) rather than to speed up compilation.
- --
- Clyde Smith-Stubbs | HI-TECH Software, | Voice: +61 7 300 5011
- clyde@hitech.com.au | P.O. Box 103, Alderley, | Fax: +61 7 300 5246
- ...!nwnexus!hitech!clyde | QLD, 4051, AUSTRALIA. | BBS: +61 7 300 5235
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-