Link-time binary rewriting techniques for program compaction
Authors:
Open Access
- 1 September 2005
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 27 (5) , 882-945
Abstract
Small program size is an important requirement for embedded systems with limited amounts of memory. We describe how link-time compaction through binary rewriting can achieve code size reductions of up to 62% for statically bound languages such as C, C++, and Fortran, without compromising on performance. We demonstrate how the limited amount of information about a program at link time can be exploited to overcome overhead resulting from separate compilation. This is done with scalable, cost-effective, whole-program analyses, optimizations, and duplicate code and data elimination techniques. The discussed techniques are evaluated and their cost-effectiveness is quantified with Squeeze++, a prototype link-time compactor.Keywords
This publication has 50 references indexed in Scilit:
- Dynamic coalescing for 16-bit instructionsACM Transactions on Embedded Computing Systems, 2005
- Survey of code-size reduction methodsACM Computing Surveys, 2003
- Practical extraction techniques for JavaACM Transactions on Programming Languages and Systems, 2002
- Slim binariesCommunications of the ACM, 1997
- Dynamic linking of software componentsComputer, 1997
- Unreachable procedures in object-oriented programmingACM Letters on Programming Languages and Systems, 1992
- Profile‐guided automatic inline expansion for C programsSoftware: Practice and Experience, 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
- Assembling code for machines with span-dependent instructionsCommunications of the ACM, 1978