Enhanced code compression for embedded RISC processors
- 1 May 1999
- conference paper
- Published by Association for Computing Machinery (ACM)
- Vol. 34 (5) , 139-149
- https://doi.org/10.1145/301618.301655
Abstract
This paper explores compiler techniques for reducing the memory needed to load and run program executables. In embedded systems, where economic incentives to reduce both RAM and ROM are strong, the size of compiled code is increasingly 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 pattern-matching techniques to identify and coalesce together repeated instruction sequences. In contrast to other methods, our framework preserves the ability to run program executables directly, without an intervening decompression stage. Our compression framework is integrated into an industrial-strength optimizing compiler, which allows us to explore the interaction between code compression and classical code optimization techniques, and requires that we contend with the difficulties of compressing previously optimized code. The specific contributions in this paper include a comprehensive experimental evaluation of code compression for a RISC-like architecture, a more powerful pattern-matching scheme for improved identification of repeated code fragments, and a new form of profile-driven code compression that reduces the speed penalty arising from compression.Keywords
This publication has 12 references indexed in Scilit:
- Code compressionPublished by Association for Computing Machinery (ACM) ,1997
- Storage assignment to decrease code sizeACM Transactions on Programming Languages and Systems, 1996
- On-line construction of suffix treesAlgorithmica, 1995
- RematerializationPublished by Association for Computing Machinery (ACM) ,1992
- Efficiently computing static single assignment form and the control dependence graphACM Transactions on Programming Languages and Systems, 1991
- Constant propagation with conditional branchesACM Transactions on Programming Languages and Systems, 1991
- Analyzing and compressing assembly codeACM SIGPLAN Notices, 1984
- Register allocation via coloringComputer Languages, 1981
- Assembling code for machines with span-dependent instructionsCommunications of the ACM, 1978
- A Space-Economical Suffix Tree Construction AlgorithmJournal of the ACM, 1976