Skip to main content

Optimization of Generated Code by Means of Attributes: Local elimination of common redundant sub-expressions

  • Chapter
GI-4.Jahrestagung

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 26))

  • 833 Accesses

Abstract

This paper deals with the application of the notion of semantic attributes (as developped by D.E. KNUTH [1]) to generation of optimized code. Taking local elimination of common sub-expressions as a starting point, it is demonstrated by means of an example that meta-compilation by attributes allows semantic formalization of classical optimization algorithms. A redundancy attribute, R+, is defined to play an optimizing role in connection with redundant common sub-expressions during compilation without having to undergo a special treatment.

Extending these basic ideas the possibility of creating a set of attributes which define various desirable optimizations in algebraic languages is indicated. Thus a certain methodology, at the level of semantic description of a language, may be outlined. In addition such descriptions offer the advantage of being easy to write, clear and rigourous.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Mathematical Systems Theory, 2, 2, 1968. “ Semantic of Context-free Languages ”. D.E. KNISH

    Google Scholar 

  2. Rapports de recherche LABORIA (IRIA): N° 20, juin 1973, N° 35, octobre 1973, N° 59, février 1974, Séminaires Langages et Traducteurs, IRIA juin 1973.

    Google Scholar 

  3. SIGPLAN Notices, July 1970. “ Control Flow Analysis ”. F.E. ALLEN

    Google Scholar 

  4. ACM 74 Annual Meeting, November 11–13, 1974. “ Semantic Attributes and Improvement of Generated Code ”. D. NEEL and M. AMIRCHAHY

    Google Scholar 

  5. John Wiley & Sons, Inc., New York, 1971. “ Compiler Construction for Digital Computers ”. G. GRIES

    Google Scholar 

  6. Courant Institute of Mathematical Sciences, New York University, April 1970. “ Programming Languages and their Compilers ”. J. COCKS and J.T. SCHWARTZ

    Google Scholar 

  7. Computer Science Group, Univ. of Washington, Seattle, Washington, Ph.D. 1972. “ Global Expression Optimization during Compilation ”. G.A. KILDALL

    Google Scholar 

  8. The Computer Journal, 16, 4, 1973. “ A FORTRAN to FORTRAN Optimizing Compiler ”. P.B. SCHNECK and E. ANGEL

    Google Scholar 

  9. ACM Symposium, Boston, October 1973. “ Analysis of a Simple Algorithm for Global Flow Problems ”. M.S. HECHT and J.D. ULLMAN

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1975 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Neel, D., Amirchahy, M., Mazaud, M. (1975). Optimization of Generated Code by Means of Attributes: Local elimination of common redundant sub-expressions. In: Siefkes, D. (eds) GI-4.Jahrestagung. Lecture Notes in Computer Science, vol 26. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-40087-6_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-40087-6_20

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-39104-4

  • Online ISBN: 978-3-662-40087-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics