Peephole Optimizer in Retargetable Compilers
スポンサーリンク
概要
- 論文の詳細を見る
Abstract machine modelling is a technique used frequently in developing the retargetable compilers. By translating the abstract machine operations into target machine instructions, we can construct retargetable compilers. However, such a technique will cause two problems. First, the code produced by the compilers is inefficient. Next, in order to emit the efficient code, the compilation time is too long. In view of these two disadvantages, we apply PO (peephole optimizer) in our retargetable compilers to do code optimization. Peephole optimizer searches for the adjacent instruction candidates in the intermediate code, and then replaces them with equivalent instructions of less cost. Furthermore, the peephole description table consists of simple tree-rewriting rules which are easily retargeted into different machines. At the same time, we have proposed a simple peephole pattern matching algorithm to reduce the peephole pattern matching time. The experiment indicates that the machine code generated by our compiler runs faster than that by GNU c compiler (gcc).
- 社団法人電子情報通信学会の論文
- 1996-09-25
著者
-
Hwang S‐l
National Taiwan Univ. Taipei Twn
-
CHEN Tzer-Shyong
Architecture Laboratory, Department of Electrical Engineering, and Department of Computer Science an
-
LAI Feipei
Architecture Laboratory, Department of Electrical Engineering, and Department of Computer Science an
-
HWANG Shu-Lin
Architecture Laboratory, Department of Electrical Engineering, and Department of Computer Science an
-
SHANG Rung-Ji
Architecture Laboratory, Department of Electrical Engineering, and Department of Computer Science an
-
Lai Feipei
Architecture Laboratory Department Of Electrical Engineering And Department Of Computer Science And
-
Shang R‐j
National Taiwan Univ. Taipei Twn
-
Chen Tzer-shyong
Architecture Laboratory Department Of Electrical Engineering And Department Of Computer Science And