skip to main content
article

Some suggestions for the use of tables in compilers

Published:01 February 2006Publication History
Skip Abstract Section

Abstract

It is common practice in compilers to use tables to represent data, and then automatically generate code based on those tables (often known as "table-driven code"). Many compilers use machine description tables from which is automatically generated parts of the code generator, and there are often small pieces of table-driven code within a compiler. Sometimes these tables are very useful, but other times the tables themselves can become a maintenance nightmare. This paper uses examples from several SGI compilers to try and enumerate some guidelines for designing good tables and table-driven code.

References

  1. C. A. R. Hoare. "Hints on programming language design". Technical Report CS-73-403, Stanford University Computer Science Department, December 1973. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. http://open64.sourceforge.net/.Google ScholarGoogle Scholar
  3. David L. Parnas. "On the Criteria To Be Used in Decomposing Systems into Modules". In Communications of the ACM, December 1972. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Some suggestions for the use of tables in compilers

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM SIGPLAN Notices
      ACM SIGPLAN Notices  Volume 41, Issue 2
      February 2006
      26 pages
      ISSN:0362-1340
      EISSN:1558-1160
      DOI:10.1145/1137933
      Issue’s Table of Contents

      Copyright © 2006 Author

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 February 2006

      Check for updates

      Qualifiers

      • article
    • Article Metrics

      • Downloads (Last 12 months)0
      • Downloads (Last 6 weeks)0

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader