Code optimization for code compression
Milenko Drinić, Darko Kirovski, Hoi Vo · 2003
With the emergence of software delivery platforms such as Microsoft's .NET, reduced size of transmitted binaries has become a very important system parameter strongly affecting system performance. In this paper, we present two novel pre-processing steps for code compression that explore program binaries' syntax and semantics to achieve superior compression ratios. The first preprocessing step involves heuristic partitioning of a program binary into streams with high auto-correlation. The second preprocessing step uses code optimization via instruction rescheduling in order to improve prediction probabilities for a given compression engine. We have developed three heuristics for instruction rescheduling that explore tradeoffs of the solution quality versus algorithm run-time. The pre-processing steps are integrated with the generic paradigm of prediction by partial matching (PPM) which is the fundament of our compression codec. The compression algorithm is implemented for x86 binaries and tested on several large Microsoft applications. Binaries compressed using our compression codec are 18-24% smaller than those compressed using the best available off-the-shelf compressor.
Cited by 8 works. doi:10.5555/776261.776296
Authors
References
- Computer Architecture: A Quantitative Approach
- A Block-sorting Lossless Data Compression Algorithm
- Computer architecture (2nd ed.): a quantitative approach
- Data Compression Using Adaptive Coding and Partial String Matching
- Managing gigabytes (2nd ed.): compressing and indexing documents and images
- Implementing the PPM data compression scheme
- Executing compressed programs on an embedded RISC architecture
- Compiler techniques for code compaction
- Slim binaries
- Optimizing an ANSI C interpreter with superoperators