home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!ukma!cs.widener.edu!eff!world!iecc!compilers-sender
- From: grover@brahmand.Eng.Sun.COM (Vinod Grover)
- Subject: Range Checking (was: And speaking of ...)
- Reply-To: grover@brahmand.Eng.Sun.COM (Vinod Grover)
- Organization: Sun Microsystems, Mt. View, Ca.
- Date: Thu, 19 Nov 1992 07:26:00 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <92-11-107@comp.compilers>
- Keywords: performance, optimize, design
- References: <92-11-057@comp.compilers> <92-11-094@comp.compilers>
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 19
-
- cheryl@gallant.apple.com (Cheryl Lins) writes:
- >Range and bounds checking are variations on the constant propagation
- >problem.
-
- With proper design, range checking could also be viewed as common
- subexpression elimination, code motion, and strength reduction. (In fact
- partial redundancy elimination; PL.8 compiler used strength reduction to
- eliminate some of the range checks). The intermediate representation could
- be augmented with "check_range", "check_nil", etc. expressions for
- traditional optimizations to be used.
-
- More powerful techniques are based on abstract interpretation (Cousot &
- Cousot [?], and Karr [Acta Informatica 197x); but may not be practical for
- use in production quality compilers.
-
- Vinod Grover
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-