home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / 2350 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  826 b 

  1. Path: sparky!uunet!mcsun!uknet!edcastle!aiai!jeff
  2. From: jeff@aiai.ed.ac.uk (Jeff Dalton)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: What do compilers optimize?
  5. Message-ID: <7409@skye.ed.ac.uk>
  6. Date: 1 Sep 92 12:55:12 GMT
  7. References: <7398@skye.ed.ac.uk> <17tvm1INNqdc@early-bird.think.com>
  8. Sender: news@aiai.ed.ac.uk
  9. Organization: AIAI, University of Edinburgh, Scotland
  10. Lines: 13
  11.  
  12. Thanks to all who have responded so far.
  13.  
  14. Another item:
  15.  
  16.   * Avoid recomputation of common "subexpressions" in a single procedure.
  17.     (There must be many cases where a programmer would rather not write
  18.     a LET and introduce a new variable.)
  19.  
  20. It's fairly common to do this for CAR-CDR sequences, but I was
  21. surprised to find that certain implementations didn't do it for,
  22. say, LENGTH of a SIMPLE-VECTOR or even for arithmetic expressions.
  23.  
  24. -- jd
  25.