Optimizing Code Size for Embedded Real-Time Applications [chapter]

Shao-Yang Wang, Chih-Yuan Chen, Rong-Guey Chang
2006 Lecture Notes in Computer Science  
This paper presents an efficient technique for code compression. In our work, a sequence of instructions that occurs repeatedly in an application will be compressed to reduce its code size. During compression, each instruction is first divided into the operation part and the register part, and then only the operation part is compressed. For reducing the run-time overhead, we propose an instruction prefetching mechanism to speed the decompression. Moreover, we devise some optimization techniques
more » ... to improve the code size reduction and the performance, and show their impacts. The experimental results show that our work can achieve a code size reduction of 33% on average and a low overhead in the process of decompression at run time for these benchmarks.
doi:10.1007/11802167_31 fatcat:lrogwrvaarg5nha73ircsokcr4