Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
A methodology and notation for compiler front end design
Brown C., Paul W. J. Software--Practice & Experience14 (4):335-346,1984.Type:Article
Date Reviewed: Jun 1 1985

Building a compiler is a difficult task. In particular, the operations concerni- ing the stack of semantic attributes in a LR(k) compiler tend to have logical bugs which are hard to discover. In their paper the authors present a methodology which helps document just this aspect of a compiler in a simple way. The idea is to adopt a notation similar to that of attribute grammars in an environment where one does not make any use of a parser generator.

The methodology is called FEDD (Front End Design and Documentation); it can be used for checking by hand the correctness of the aspects of a LR(k) compile- r. There are some additional constraints on the notation of attributed grammars which ensure the correctness (e.g, uniformness: each grammar symbol has the same set of attributes in any occurrence). FEDD deals with global variables used in a compiler, too. It ensures that no value is destroyed before its use and that every value that is produced will also be used.

The authors used their method in both academic and industrial environments and found that it led to a substantial improvement in compiler writing efficiency. The paper is easy to read and gives a lot of examples.

Reviewer:  J. Messerschmidt Review #: CR108822
Bookmark and Share
 
Compilers (D.3.4 ... )
 
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
Fundamentals of compilers
Lemone K., CRC Press, Inc., Boca Raton, FL, 1992. Type: Book (9780849373411)
May 1 1993
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