Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Short-circuit compiler transformation: optimizing conditional blocks
Ghodrat M., Givargis T., Nicolau A.  Asia South Pacific design automation (Proceedings of the 2007 Asia South Pacific Conference on Design Automation, Jan 23-26, 2007)504-510.2007.Type:Proceedings
Date Reviewed: Aug 5 2008

“Short circuit” normally describes the semantics of a construct like the C operator &&, which prohibits evaluation of the second operand if the first yields false. In this paper, the meaning of the term is extended to cover a very general transformation of conditional statements. The domain of the conditional expression, which may involve arithmetic as well as Boolean operators, is partitioned into regions with the following properties: If the values of the variables lie in some of the regions, the value of the expression is known; it is cheaper to determine that the values of the variables lie in those regions than it is to evaluate the expression; and, given typical program usage, there is a high probability that the variables will have values lying in some of those regions.

This optimization is intended for embedded systems, where the application is well understood and the ratio of execution time to compilation time is very high. The authors report speed improvements and power reductions over a wide range for code segments extracted from typical applications, but not for complete programs.

The paper explains the technique clearly, and provides evidence that real programs contain conditional statements that it can speed up considerably. I remain unconvinced, however, that there will be a significant improvement in the performance of the overall system.

Reviewer:  W. M. Waite Review #: CR135911 (0909-0851)
Bookmark and Share
  Reviewer Selected
 
 
Compilers (D.3.4 ... )
 
 
Program Transformation (I.2.2 ... )
 
 
Translator Writing Systems And Compiler Generators (D.3.4 ... )
 
 
Processors (D.3.4 )
 
 
Testing And Debugging (D.2.5 )
 
Would you recommend this review?
yes
no
Other reviews under "Compilers": Date
An architecture for combinator graph reduction
Philip John J., Academic Press Prof., Inc., San Diego, CA, 1990. Type: Book (9780124192409)
Feb 1 1992
Crafting a compiler with C
Fischer C., Richard J. J., Benjamin-Cummings Publ. Co., Inc., Redwood City, CA, 1991. Type: Book (9780805321661)
Feb 1 1992
A methodology and notation for compiler front end design
Brown C., Paul W. J. Software--Practice & Experience 14(4): 335-346, 1984. Type: Article
Jun 1 1985
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy