Code compression
- 1 May 1997
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 32 (5) , 358-365
- https://doi.org/10.1145/258916.258947
Abstract
Current research in compiler optimization counts mainly CPU time and perhaps the first cache level or two. This view has been important but is becoming myopic, at least from a system-wide viewpoint, as the ratio of network and disk speeds to CPU speeds grows exponentially.For example, we have seen the CPU idle for most of the time during paging, so compressing pages can increase total performance even though the CPU must decompress or interpret the page contents. Another profile shows that many functions are called just once, so reduced paging could pay for their interpretation overhead.This paper describes:• Measurements that show how code compression can save space and total time in some important real-world scenarios.• A compressed executable representation that is roughly the same size as gzipped x86 programs and can be interpreted without decompression. It can also be compiled to high-quality machine code at 2.5 megabytes per second on a 120MHz Pentium processor• A compressed "wire" representation that must be decompressed before execution but is, for example, roughly 21% the size of SPARC code when compressing gcc.Keywords
This publication has 8 references indexed in Scilit:
- Slim binariesCommunications of the ACM, 1997
- Efficient and language-independent mobile programsPublished by Association for Computing Machinery (ACM) ,1996
- Optimizing an ANSI C interpreter with superoperatorsPublished by Association for Computing Machinery (ACM) ,1995
- Arithmetic coding for data compressionCommunications of the ACM, 1987
- Interval and recency rank source coding: Two on-line adaptive variable-length schemesIEEE Transactions on Information Theory, 1987
- A locally adaptive data compression schemeCommunications of the ACM, 1986
- Compression of individual sequences via variable-rate codingIEEE Transactions on Information Theory, 1978
- On the Complexity of Finite SequencesIEEE Transactions on Information Theory, 1976