Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Engineering a simple, efficient code-generator generator
Fraser C., Hanson D. (ed), Proebsting T. International Journal of Intelligent Systems in Accounting and Finance Management1 (3):213-226,1992.Type:Article
Date Reviewed: May 1 1994

Unlike papers that focus on the theory of pattern matching or its application to code generation, this paper focuses on engineering the pattern matcher. The paper will interest programmers confronted with time or space requirements as well as compiler implementors.

The topic system is iburg, a variant of the burg code generator generator. Initially, iburg was developed for testing burg’s input language. Unlike burg, iburg supports dynamic programming during matching, making iburg the more powerful and flexible of the two systems. The authors have also found iburg useful in teaching.

Sections 1 through 3 introduce code generation using tree pattern matching and dynamic programming along with the specifics of iburg and burg. A consistent running example provides the reader with a solid understanding of the material. Section 4 presents the key implementation issues along with their resolution in iburg. Section 5 then discusses a number of potential improvements to the naïve implementation. Several improvements involve encoding techniques that conserve space without costing execution time. Others involve programming techniques for matching patterns, handling chain rules, and computing costs. Each candidate improvement was implemented and measured; some proved uneconomical. The measurements are provided.

The resulting iburg matchers are small and compact. Despite the improvements, iburg matchers are still slower than burg matchers because of their use of dynamic programming during compilation. The concluding section compares iburg with other code generator generators and attempts to show where iburg is best applied.

Reviewer:  Robert A. Ballance Review #: CR117495
Bookmark and Share
 
Translator Writing Systems And Compiler Generators (D.3.4 ... )
 
 
Code Generation (D.3.4 ... )
 
 
Compilers (D.3.4 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Translator Writing Systems And Compiler Generators": Date
The art of compiler design
Pittman T., Peters J., Prentice-Hall, Inc., Upper Saddle River, NJ, 1992. Type: Book (9780130481900)
Apr 1 1994
Compiler generation from denotational semantics
Paulson L., Cambridge University Press, New York, NY, 1984. Type: Book (9780521268431)
Jun 1 1985
Automatic compiler production: the front end
Reiss S. IEEE Transactions on Software Engineering SE-13(6): 609-627, 1987. Type: Article
Feb 1 1988
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