A Retargetable Code Generator for the Generic Intermediate Language in COINS
スポンサーリンク
概要
- 論文の詳細を見る
This paper describes a generic intermediate language, called LIR, and a retargetable code generator for LIR, both of which were developed as part of the compiler for the COINS (COmpiler INfraStructure) project. Although the purpose and basic concepts of LIR are similar to those of RTL, the intermediate language of GCC, LIR is defined as an independent and self-contained programming language that has the constructs of a high-level language, such as variable declarations, and their formal semantics. As a result, LIR has several advantages over other representations currently in use. We can describe all compiler back-end passes as program transformations. Consequently, LIR provides a concise interface for interaction with the compiler for users who want to replace part of the compiler with their code. Most of the recently developed, retargetable code generators, such as Burg, IBurg, etc., are based on the DP matching method. Their machine description language consists of rewriting rules with code generation actions. However, the rules that are used to describe a machine do not correspond directly to any of the existing instructions of the target machine. On the other hand, the description language of GCC consists of descriptive statements that correspond to each of the target's existing machine instructions. However, the GCC code generator does not produce optimal code because it is not based on the DP method. Our code generator makes use of both the DP and GCC methods by translating the GCC descriptive statements into rewriting rules that are suitable for use by the DP matching method. Furthermore, DP matching is also implemented as a kind of transformation of an LIR program, and later transformations such as register allocation are applied to the resulting LIR program.
著者
-
Nakata Ikuo
Faculty Of Computer And Information Sciences Housei University
-
HAGIYA MASAMI
Graduate School of Information Science and Technology, the University of Tokyo
-
Abe Seika
Graduate School Of Information Science And Technology The University Of Tokyo
関連論文
- A Retargetable Code Generator for the Generic Intermediate Language in COINS
- A Retargetable Code Generator for the Generic Intermediate Language in COINS
- Modal μ-calculus on Min-plus Algebra N∞