skip to main content
10.1145/513829.513849acmconferencesArticle/Chapter ViewAbstractPublication PagescpsweekConference Proceedingsconference-collections
Article

Optimal integrated code generation for clustered VLIW architectures

Published:19 June 2002Publication History

ABSTRACT

In contrast to standard compilers, generating code for DSPs can afford spending considerable resources in time and space on optimizations. Generating efficient code for irregular architectures requires an integrated method that optimizes simultaneously for instruction selection, instruction scheduling, and register allocation.We describe a method for fully integrated optimal code generation based on dynamic programming. We introduce the concept of residence classes and space profiles, which allows us to describe and optimize for irregular register and memory structures. In order to obtain a retargetable framework we introduce a structured architecture description language, ADML, which is based on XML. We implemented a prototype of such a retargetable system for optimal code generation. Results for variants of the TI C62x show that our method can produce optimal solutions to small but nontrivial problem instances with a reasonable amount of time and space.

References

  1. A. Aho and S. Johnson. Optimal Code Generation for Expression Trees. J. ACM, 23(3): 488--501, July 1976.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. H.-C. Chou and C.-P. Chung. An Optimal Instruction Scheduler for Superscalar Processors. IEEE Transactions on Parallel and Distributed Systems, 6(3): 303--313, 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. C. W. Fraser and D. R. Hanson. A Retargetable C Compiler: Design and Implementation. Benjamin Cummings Publishing Co., 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. R. Freiburghouse. Register Allocation via Usage Counts. Comm. ACM, 17(11), 1974.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Hanono and S. Devadas. Instruction Selection, Resource Allocation, and Scheduling in the AVIV Retargetable Code Generator. In Design Automation Conference, pages 510--515, 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Hitachi Ltd. Hitachi SuperH RISC engine SH7729. Hardware Manual ADE-602--157 Rev. 1.0, Sept. 1999.]]Google ScholarGoogle Scholar
  7. D. Kästner. PROPAN: A Retargetable System for Postpass Optimisations and Analyses. In ACM SIGPLAN Workshop on Languages, Compilers and Tools for Embedded Systems, June 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. C. Kessler and A. Bednarski. A Dynamic Programming Approach to Optimal Integrated Code Generation. In ACM SIGPLAN Workshop on Languages, Compilers and Tools for Embedded Systems, June 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. C. W. Keßler. Scheduling Expression DAGs for Minimal Register Need. Computer Languages, 24(1): 33--53, Sept. 1998.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. R. Leupers. Code Optimization Techniques for Embedded Processors. Kluwer, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. K. Mehlhorn and S. Näher. LEDA: A Platform for Combinatorial and Geometric Computing. Cambridge University Press, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. S. S. Muchnick. Advanced Compiler Design and Implementation. Morgan Kaufmann, 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Texas Instruments. TMS320C6000 CPU and Instruction Set Reference Guide, October 2000.]]Google ScholarGoogle Scholar
  14. S. R. Vegdahl. A Dynamic-Programming Technique for Compacting Loops. In Proc. 25th Annual IEEE/ACM Int. Symp. Microarchitecture, pages 180--188. IEEE Computer Society Press, 1992.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. T. Wilson, G. Grewal, B. Halley, and D. Banerji. An integrated approach to retargetable code generation. In Proc. International Symposium on High-Level Synthesis, pages 70--75, May 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Optimal integrated code generation for clustered VLIW architectures

    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
    • Published in

      cover image ACM Conferences
      LCTES/SCOPES '02: Proceedings of the joint conference on Languages, compilers and tools for embedded systems: software and compilers for embedded systems
      June 2002
      244 pages
      ISBN:1581135270
      DOI:10.1145/513829

      Copyright © 2002 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 19 June 2002

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      LCTES/SCOPES '02 Paper Acceptance Rate25of73submissions,34%Overall Acceptance Rate116of438submissions,26%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader