{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:55:51Z","timestamp":1790927751401,"version":"4.1.0"},"reference-count":17,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2000,3,1]],"date-time":"2000-03-01T00:00:00Z","timestamp":951868800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2000,3]]},"abstract":"<jats:p>In recent years there has been an increasing trend toward the incorpor ation of computers into a variety of devices where the amount of memory available is limited. This makes it desirable to try to reduce the size of applications where possible. This article explores the use of compiler techniques to accomplish code compaction to yield smaller executables. The main contribution of this article is to show that careful, aggressive, interprocedural optimization, together with procedural abstraction of repeated code fragments, can yield significantly better reductions in code size than previous approaches, which have generally focused on abstraction of repeated instruction sequences. We also show how \u201cequivalent\u201d code fragments can be detected and factored out using conventional compiler techniques, and without having to resort to purely linear treatments of code sequences as in suffix-tree-based approaches, thereby setting up a framework for code compaction that can be more flexible in its treatment of what code fragments are considered equivalent. Our ideas have been implemented in the form of a binary-rewriting tool that reduces the size of executables by about 30% on the average.<\/jats:p>","DOI":"10.1145\/349214.349233","type":"journal-article","created":{"date-parts":[[2002,10,7]],"date-time":"2002-10-07T09:52:47Z","timestamp":1033984367000},"page":"378-415","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":183,"title":["Compiler techniques for code compaction"],"prefix":"10.1145","volume":"22","author":[{"given":"Saumya K.","family":"Debray","sequence":"first","affiliation":[{"name":"Univ. of Arizona, Tucson"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"William","family":"Evans","sequence":"additional","affiliation":[{"name":"Univ. of Arizona, Tucson"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Robert","family":"Muth","sequence":"additional","affiliation":[{"name":"Compaq Computer Corp., Shrewsbury, MA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Bjorn","family":"De Sutter","sequence":"additional","affiliation":[{"name":"Univ. of Ghent, Ghent, Belgium"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2000,3]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Techniques, and Tools","author":"AHO A. V.","unstructured":"AHO , A. V. , SETHI , R. , AND ULLMAN , J. D. 1985. Compilers--Principles , Techniques, and Tools . Addison-Wesley , Reading, Mass . AHO, A. V., SETHI, R., AND ULLMAN, J. D. 1985. Compilers--Principles, Techniques, and Tools. Addison-Wesley, Reading, Mass."},{"key":"e_1_2_1_2_1","first-page":"71","volume-title":"Proc. ACM Symposium on Theory of Computing. ACM Press","author":"BAKER B. S.","year":"1993","unstructured":"BAKER , B. S. 1993 . A theory of parameterized pattern matching: Algorithms and applications (extended abstract) . In Proc. ACM Symposium on Theory of Computing. ACM Press , New York, N.Y. , 71 - 80 . 10.1145\/167088.167115 BAKER, B. S. 1993. A theory of parameterized pattern matching: Algorithms and applications (extended abstract). In Proc. ACM Symposium on Theory of Computing. ACM Press, New York, N.Y., 71-80. 10.1145\/167088.167115"},{"key":"e_1_2_1_3_1","first-page":"179","volume-title":"Proc. USENIX Annual Technical Conference. Usenix","author":"BAKER B. S.","year":"1998","unstructured":"BAKER , B. S. AND MANBER , U. 1998 . Deducing similarities in Java sources from bytecodes . In Proc. USENIX Annual Technical Conference. Usenix , Berkeley, CA , 179 - 190 . BAKER, B. S. AND MANBER, U. 1998. Deducing similarities in Java sources from bytecodes. In Proc. USENIX Annual Technical Conference. Usenix, Berkeley, CA, 179-190."},{"key":"e_1_2_1_4_1","volume-title":"Proc. International Symposium on Advanced Research in Asynchronous Circuits and Systems. IEEE Computer Society, Washington, D.C.","author":"BENES M.","year":"1998","unstructured":"BENES , M. , NOWICK , S. M. , AND WOLFE , A. 1998 . A fast asynchronous Huffman decoder for compressed-code embedded processors . In Proc. International Symposium on Advanced Research in Asynchronous Circuits and Systems. IEEE Computer Society, Washington, D.C. BENES, M., NOWICK, S. M., AND WOLFE, A. 1998. A fast asynchronous Huffman decoder for compressed-code embedded processors. In Proc. International Symposium on Advanced Research in Asynchronous Circuits and Systems. IEEE Computer Society, Washington, D.C."},{"key":"e_1_2_1_5_1","first-page":"139","volume-title":"A CM Conference on Programming Language Design and Implementation. ACM Press","author":"COOPER K. D.","year":"1999","unstructured":"COOPER , K. D. AND MCINTOSH , N. 1999 . Enhanced code compression for embedded RISC processors . In A CM Conference on Programming Language Design and Implementation. ACM Press , New York, N.Y. , 139 - 149 . 10.1145\/301618.301655 COOPER, K. D. AND MCINTOSH, N. 1999. Enhanced code compression for embedded RISC processors. In A CM Conference on Programming Language Design and Implementation. ACM Press, New York, N.Y., 139-149. 10.1145\/301618.301655"},{"key":"e_1_2_1_7_1","volume-title":"A CM Conference on Programming Language Design and Implementation. ACM Press","author":"ERNST J.","year":"1997","unstructured":"ERNST , J. , EVANS , W. , FRASER , C. , Lucco, S., AND PROEBSTING , T. 1997 . Code compression . In A CM Conference on Programming Language Design and Implementation. ACM Press , New York, N.Y. 10.1145\/258915.258947 ERNST, J., EVANS, W., FRASER, C., Lucco, S., AND PROEBSTING, T. 1997. Code compression. In A CM Conference on Programming Language Design and Implementation. ACM Press, New York, N.Y. 10.1145\/258915.258947"},{"key":"e_1_2_1_8_1","volume-title":"Mobile Object Systems: Towards the Programmable Internet","author":"FRANZ M.","unstructured":"FRANZ , M. 1997. Adaptive compression of syntax trees and iterative dynamic code optimization: Two basic technologies for mobile-object systems . In Mobile Object Systems: Towards the Programmable Internet , J. Vitek and C. Tschudin, Eds. Number 1222 in Springer Lecture Notes in Computer Science. Springer , Heidelberg, Germany, 263-276. Tech. Report 97-04, Department of Information and Computer Science, University of California, Irvine. FRANZ, M. 1997. Adaptive compression of syntax trees and iterative dynamic code optimization: Two basic technologies for mobile-object systems. In Mobile Object Systems: Towards the Programmable Internet, J. Vitek and C. Tschudin, Eds. Number 1222 in Springer Lecture Notes in Computer Science. Springer, Heidelberg, Germany, 263-276. Tech. Report 97-04, Department of Information and Computer Science, University of California, Irvine."},{"key":"e_1_2_1_9_1","doi-asserted-by":"crossref","unstructured":"FRANZ M. AND KISTLER T. 1997. Slim binaries. Commun. ACM g0 12 (Dec.) 87-94. 10.1145\/265563.265576   FRANZ M. AND KISTLER T. 1997. Slim binaries. Commun. ACM g0 12 (Dec.) 87-94. 10.1145\/265563.265576","DOI":"10.1145\/265563.265576"},{"key":"e_1_2_1_10_1","unstructured":"FRASER C. AND PROEBSTING T. 1995. Custom instruction sets for code compression. Unpublished manuscript http :\/\/research.microsoft. com\/ toddpro\/papers\/pldi2 ps.  FRASER C. AND PROEBSTING T. 1995. Custom instruction sets for code compression. Unpublished manuscript http :\/\/research.microsoft. com\/ toddpro\/papers\/pldi2 ps."},{"key":"e_1_2_1_11_1","first-page":"117","volume-title":"Proc. of the A CM SIGPLAN Symposium on Compiler Construction.","volume":"19","author":"FRASER C.","year":"1984","unstructured":"FRASER , C. , MYERS , E. , AND WENDT , A. 1984 . Analyzing and compressing assembly code . In Proc. of the A CM SIGPLAN Symposium on Compiler Construction. Vol. 19 . ACM Press, New York, N.Y. , 117 - 121 . 10.1145\/502874.502886 FRASER, C., MYERS, E., AND WENDT, A. 1984. Analyzing and compressing assembly code. In Proc. of the A CM SIGPLAN Symposium on Compiler Construction. Vol. 19. ACM Press, New York, N.Y., 117-121. 10.1145\/502874.502886"},{"key":"e_1_2_1_12_1","volume-title":"A Retargetable C Compiler: Design and Implementation","author":"FRASER C. W.","unstructured":"FRASER , C. W. AND HANSON , D. R. 1995. A Retargetable C Compiler: Design and Implementation . Addison-Wesley , Reading, Mass . FRASER, C. W. AND HANSON, D. R. 1995. A Retargetable C Compiler: Design and Implementation. Addison-Wesley, Reading, Mass."},{"key":"e_1_2_1_13_1","volume-title":"Computers and Intractability: A Guide to the Theory of NP-Completeness","author":"GAREY M. R.","unstructured":"GAREY , M. R. AND JOHNSON , D. S. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness . W. H. Freeman , New York, N.Y. GAREY, M. R. AND JOHNSON, D. S. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, New York, N.Y."},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/183432.183443"},{"key":"e_1_2_1_15_1","volume-title":"Advanced Compiler Design and Implementation. Morgan Kaufman","author":"MUCHNICK S. S.","unstructured":"MUCHNICK , S. S. 1997. Advanced Compiler Design and Implementation. Morgan Kaufman , San Francisco, CA . MUCHNICK, S. S. 1997. Advanced Compiler Design and Implementation. Morgan Kaufman, San Francisco, CA."},{"key":"e_1_2_1_17_1","first-page":"16","volume-title":"ACM Conference on Programming Language Design and Implementation. ACM Press","author":"PETTIS I~.","year":"1990","unstructured":"PETTIS , I~. AND HANSEN , R. C. 1990 . Profile-guided code positioning . In ACM Conference on Programming Language Design and Implementation. ACM Press , New York, N.Y. , 16 - 27 . 10.1145\/93542.93550 PETTIS, I~. AND HANSEN, R. C. 1990. Profile-guided code positioning. In ACM Conference on Programming Language Design and Implementation. ACM Press, New York, N.Y., 16-27. 10.1145\/93542.93550"},{"key":"e_1_2_1_18_1","volume-title":"Proc. Syrup. on Principles of Programming Languages","author":"PROEBSTING T.","year":"1994","unstructured":"PROEBSTING , T. 1995. Optimizing an ANSI C interpreter with superoperators . In Proc. Syrup. on Principles of Programming Languages . ACM Press , New York, N.Y. , 322-332. 10.1145\/ 1994 48.199526 PROEBSTING, T. 1995. Optimizing an ANSI C interpreter with superoperators. In Proc. Syrup. on Principles of Programming Languages. ACM Press, New York, N.Y., 322-332. 10.1145\/199448.199526"},{"key":"e_1_2_1_19_1","unstructured":"VAN DE WIEL R. 2000. The \"Code Compaction\" Bibliography. http:\/\/www.win.tue.nl\/cs\/pa\/rikvdw\/bibl.html.  VAN DE WIEL R. 2000. The \"Code Compaction\" Bibliography. http:\/\/www.win.tue.nl\/cs\/pa\/rikvdw\/bibl.html."}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/349214.349233","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/349214.349233","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T15:31:07Z","timestamp":1750174267000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/349214.349233"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2000,3]]},"references-count":17,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2000,3]]}},"alternative-id":["10.1145\/349214.349233"],"URL":"https:\/\/doi.org\/10.1145\/349214.349233","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2000,3]]},"assertion":[{"value":"2000-03-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}