An LLVM Backend for GHC

作者:Terei David A*; Chakravarty Manuel M T
来源:ACM Sigplan Notices, 2010, 45(11): 109-120.
DOI:10.1145/2088456.1863538

摘要

In the presence of ever-changing computer architectures, high-quality optimising compiler backends are moving targets that require specialist knowledge and sophisticated algorithms. In this paper, we explore a new backend for the Glasgow Haskell Compiler (GHC) that leverages the Low Level Virtual Machine (LLVM), a new breed of compiler written explicitly for use by other compiler writers, not high-level programmers, that promises to enable outsourcing of low-level and architecture-dependent aspects of code generation. We discuss the conceptual challenges and our backend design. We also provide an extensive quantitative evaluation of the performance of the backend and of the code it produces.

  • 出版日期2010-11