Huffman-Based Code Compression Techniques for Embedded Processors

被引:17
作者
Bonny, Talal [1 ]
Henkel, Joerg [2 ]
机构
[1] KAUST, Jeddah, Saudi Arabia
[2] Univ Karlsruhe, Karlsruhe, Germany
关键词
Performance; Design; Embedded systems; code compression; Huffman coding; code density;
D O I
10.1145/1835420.1835424
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The size of embedded software is increasing at a rapid pace. It is often challenging and time consuming to fit an amount of required software functionality within a given hardware resource budget. Code compression is a means to alleviate the problem by providing substantial savings in terms of code size. In this article we introduce a novel and efficient hardware-supported compression technique that is based on Huffman Coding. Our technique reduces the size of the generated decoding table, which takes a large portion of the memory. It combines our previous techniques, Instruction Splitting Technique and Instruction Re-encoding Technique into new one called Combined Compression Technique to improve the final compression ratio by taking advantage of both previous techniques. The instruction Splitting Technique is instruction set architecture (ISA)-independent. It splits the instructions into portions of varying size (called patterns) before Huffman coding is applied. This technique improves the final compression ratio by more than 20% compared to other known schemes based on Huffman Coding. The average compression ratios achieved using this technique are 48% and 50% for ARM and MIPS, respectively. The Instruction Re-encoding Technique is ISA-dependent. It investigates the benefits of reencoding unused bits (we call them reencodable bits) in the instruction format for a specific application to improve the compression ratio. Reencoding those bits can reduce the size of decoding tables by up to 40%. Using this technique, we improve the final compression ratios in comparison to the first technique to 46% and 45% for ARM and MIPS, respectively (including all overhead that incurs). The Combined Compression Technique improves the compression ratio to 45% and 42% for ARM and MIPS, respectively. In our compression technique, we have conducted evaluations using a representative set of applications and we have applied each technique to two major embedded processor architectures, namely ARM and MIPS.
引用
收藏
页数:37
相关论文
共 32 条
[1]  
Bell T.C., 1990, Text Compression
[2]   Cached-code compression for energy minimization in embedded processors [J].
Benini, L ;
Macii, A ;
Nannarelli, A .
ISLPED'01: PROCEEDINGS OF THE 2001 INTERNATIONAL SYMPOSIUM ON LOWPOWER ELECTRONICS AND DESIGN, 2001, :322-327
[3]  
Bonny T., 2006, P 16H GREAT LAK S VL P 16H GREAT LAK S VL, P259
[4]  
BONNY T, 2008, P C DES AUT TEST EUR, P770
[5]  
Bonny T, 2007, DES AUT TEST EUROPE, P809
[6]   Instruction splitting for efficient code compression [J].
Bonny, Talal ;
Henkel, Joerg .
2007 44TH ACM/IEEE DESIGN AUTOMATION CONFERENCE, VOLS 1 AND 2, 2007, :646-+
[7]   Automotive software and systems engineering [J].
Broy, M .
THIRD ACM & IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR CO-DESIGN, PROCEEDINGS, 2005, :143-149
[8]  
BURGER D, 1997, CSTR971342 U WISC MA
[9]  
CORLISS M, 2003, P INT S COMP ARCH IS
[10]  
FURBER SARM, 2000, ARM SYSTEM ONCHIP AR