Code compression by register operand dependency

  • Authors:
  • Kelvin Lin;Jean Jyh-Jiun Shann;Chung-Ping Chung

  • Affiliations:
  • No. 193, Jhongsiao N. Rd., Gueiren Township, Tainan County, 711 Taiwan, (ROC) and Department of Computer Science & Information Engineering, National Chiao Tung University, 1001 Ta Hsueh Road, Hsin ...;Department of Computer Science & Information Engineering, National Chiao Tung University, 1001 Ta Hsueh Road, HsinChu 300, Taiwan, ROC;Department of Computer Science & Information Engineering, National Chiao Tung University, 1001 Ta Hsueh Road, HsinChu 300, Taiwan, ROC

  • Venue:
  • Journal of Systems and Software
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper proposes a dictionary-based code compression technique that maps the source register operands to the nearest occurrence of a destination register in the predecessor instructions. The key idea is that most destination registers have a great possibility to be used as source registers in the following instructions. The dependent registers can be removed from the dictionary if this information can be specified otherwise. Such destination source relationships are so common that making use of them can result in much better code compression. After removing the dependent register operands, the original dictionary size can be reduced significantly. As a result, the compression ratio can benefit from: (a) the reduction of dictionary size due to the removal of dependent registers, and (b) the reduction of program encoding due to the reduced number of dictionary entries. A set of programs has been compressed using this feature. The compression results show that the average compression ratio is reduced to 38.41% on average for MediaBench benchmarks compiled for MIPS R2000 processor, as opposed to 45% using operand factorization.