Enhanced code compression for embedded RISC processors

Citation
Kd. Cooper et N. Mcintosh, Enhanced code compression for embedded RISC processors, ACM SIGPL N, 34(5), 1999, pp. 139-149
Citations number
22
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
34
Issue
5
Year of publication
1999
Pages
139 - 149
Database
ISI
SICI code
1523-2867(199905)34:5<139:ECCFER>2.0.ZU;2-4
Abstract
This paper explores compiler techniques for reducing the memory needed to l oad and run program executables. In embedded systems, where economic incent ives to reduce both RAM and ROM are strong, the size of compiled code is in creasingly important. Similarly, in mobile and network computing, the need to transmit an executable before running it places a premium on code size. Our work focuses on reducing the size of a program's code segment, using pa ttern-matching techniques to identify and coalesce together repeated instru ction sequences. In contrast to other methods, our framework preserves the ability to run program executables directly, without an intervening decompr ession stage. Our compression framework is integrated into an industrial-st rength optimizing compiler, which allows us to explore the interaction betw een code compression and classical code optimization techniques, and requir es that we contend with the difficulties of compressing previously optimize d code. The specific contributions in this paper include a comprehensive ex perimental evaluation of code compression for a RISC-like architecture, a m ore powerful pattern-matching scheme for improved identification of repeate d code fragments, and a new form of profile-driven code compression that re duces the speed penalty arising from compression.