Enhancing the performance of 16-bit code using augmenting instructions

被引:3
|
作者
Krishnaswamy, A [1 ]
Gupta, R [1 ]
机构
[1] Univ Arizona, Dept Comp Sci, Tucson, AZ 85721 USA
关键词
algorithms; measurement; performance; embedded processor; 32-bit ARM ISA; 16-bit Thumb ISA; code size; AX instructions; instruction coalescing;
D O I
10.1145/780731.780767
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the embedded domain, memory usage and energy consumption are critical constraints. Dual width instruction set embedded processors such as the ARM provide a 16-bit instruction set in addition to the 32-bit instruction set to address these concerns. Using 16-bit instructions one can achieve code size reduction and I-cache energy savings at the cost of performance. We have observed that throughout 16-bit Thumb code there exist Thumb instruction pairs that are equivalent to a single ARM instruction. We have developed an approach which uses combination of compiler and architectural support to exploit the above property for improving performance of 16-bit code. We enhance the Thumb instruction set by incorporating Augmenting eXtensions (AX). The task of the compiler is to identify pairs of Thumb instructions that can be safely combined and executed as-single ARM instructions. The compiler replaces such pairs of Thumb, instructions by AX+Thumb instruction pairs. The AX instruction is coalesced with the immediately following Thumb instruction to generate a single ARM instruction at decode time. Thus, using AX instructions, the compiler can both generate compact 16-bit code and provide hardware with information needed to produce better performing 32-bit code.
引用
收藏
页码:254 / 264
页数:11
相关论文
共 50 条