Optimizing compiler design for modularity and extensibility

  • Authors:
  • Steven Carroll;Walden Ko;Mark Yankelevsky;Constantine Polychronopoulos

  • Affiliations:
  • Center for Supercomputing Research and Development, University of Illinois at Urbana-Champaign, Urbana IL;Center for Supercomputing Research and Development, University of Illinois at Urbana-Champaign, Urbana IL;Center for Supercomputing Research and Development, University of Illinois at Urbana-Champaign, Urbana IL;Center for Supercomputing Research and Development, University of Illinois at Urbana-Champaign, Urbana IL

  • Venue:
  • LCPC'01 Proceedings of the 14th international conference on Languages and compilers for parallel computing
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

Implementing an optimizing compiler for a new target architecture has traditionally been a complex design/development effort requiring a large time scale. Existing machine descriptions and approaches based on pre-existing internal representations (IR) are not sufficient to build truly modular and extensible compilers. This paper describes the features of the Extensible Compiler Interface (ECI) implemented in the PROMIS compiler, which tackles several major problems concerning the reuse of compiler components, retargeting as well as extending existing compilers with new functionality. One of the main design issues is maintaining analysis information calculated by one module after another potentially unknown module modifies the IR. Another problem is expanding existing modules (or passes) to work with processor-specific instructions and data types added by the compiler developers. Our approach to compiler extensibility through the proposed ECI tackles and solves the above problems, and provides a simple yet powerful API for adding arbitrary functionality or entirely new optimizations to existing compilers. A case study is presented in which the components of a parallelizing compiler are reused to build a compiler for a vector architecture, thereby demonstrating the utility and convenience of ECI.