{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,19]],"date-time":"2026-11-19T02:38:49Z","timestamp":1795055929536,"version":"4.10.2"},"reference-count":37,"publisher":"Association for Computing Machinery (ACM)","issue":"3","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Archit. Code Optim."],"published-print":{"date-parts":[[2006,9]]},"abstract":"<jats:p>\n            Dynamic binary optimizers store altered copies of original program instructions in software-managed code caches in order to maximize reuse of transformed code. Code caches store code blocks that may vary in size, reference other code blocks, and carry a high replacement overhead. These unique constraints reduce the effectiveness of conventional cache management policies. Our work directly addresses these unique constraints and presents several contributions to the code-cache management problem. First, we show that evicting more than the minimum number of code blocks from the code cache results in less run-time overhead than the existing alternatives. Such\n            <jats:italic>granular<\/jats:italic>\n            evictions reduce overall execution time, as the fixed costs of invoking the eviction mechanism are amortized across multiple cache insertions. Second, a study of the ideal lifetimes of dynamically generated code blocks illustrates the benefit of a replacement algorithm based on a generational heuristic. We describe and evaluate a generational approach to code cache management that makes it easy to identify long-lived code blocks and simultaneously avoid any fragmentation because of the eviction of short-lived blocks. Finally, we present results from an implementation of our generational approach in the DynamoRIO framework and illustrate that, as dynamic optimization systems become more prevalent, effective code cache-management policies will be essential for reliable, scalable performance of modern applications.\n          <\/jats:p>","DOI":"10.1145\/1162690.1162692","type":"journal-article","created":{"date-parts":[[2006,10,18]],"date-time":"2006-10-18T18:11:32Z","timestamp":1161195092000},"page":"263-294","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":35,"title":["Managing bounded code caches in dynamic binary optimization systems"],"prefix":"10.1145","volume":"3","author":[{"given":"Kim","family":"Hazelwood","sequence":"first","affiliation":[{"name":"University of Virginia, Charlotteville, VA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Michael D.","family":"Smith","sequence":"additional","affiliation":[{"name":"Harvard University, Cambridge, MA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2006,9]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"BOA: The architecture of a binary translation processor. IBM Research Report RC 21665.","author":"Altman E. R.","year":"1999","unstructured":"Altman , E. R. , Gschwind , M. , Sathaye , S. , Kosonocky , S. , Bright , A. , Fritts , J. , Ledak , P. , Appenzeller , D. , Agricola , C. , and Filan , Z . 1999 . BOA: The architecture of a binary translation processor. IBM Research Report RC 21665. Altman, E. R., Gschwind, M., Sathaye, S., Kosonocky, S., Bright, A., Fritts, J., Ledak, P., Appenzeller, D., Agricola, C., and Filan, Z. 1999. BOA: The architecture of a binary translation processor. IBM Research Report RC 21665."},{"key":"e_1_2_1_2_1","volume-title":"Proceedings of the IEEE.","author":"Altman E.","unstructured":"Altman , E. , Ebcio\u011flu , K. , Gschwind , M. , and Sathaye , S . 2001. Advances and future challenges in binary translation and optimization . Proceedings of the IEEE. Altman, E., Ebcio\u011flu, K., Gschwind, M., and Sathaye, S. 2001. Advances and future challenges in binary translation and optimization. Proceedings of the IEEE."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380190206"},{"key":"e_1_2_1_4_1","volume-title":"15th Conference on Object-Oriented Programming, Systems, Languages, and Applications. 47--65","author":"Arnold M.","unstructured":"Arnold , M. , Fink , S. , Grove , D. , Hind , M. , and Sweeney , P. F . 2000. Adaptive optimization in the Jalape\u00f1o JVM . In 15th Conference on Object-Oriented Programming, Systems, Languages, and Applications. 47--65 . 10.1145\/353171.353175 Arnold, M., Fink, S., Grove, D., Hind, M., and Sweeney, P. F. 2000. Adaptive optimization in the Jalape\u00f1o JVM. In 15th Conference on Object-Oriented Programming, Systems, Languages, and Applications. 47--65. 10.1145\/353171.353175"},{"key":"e_1_2_1_5_1","volume-title":"IEEE INFOCOM Conference on Computer Communications.","author":"Bahat O.","unstructured":"Bahat , O. and Makowski , A. M . 2001. Optimal replacement policies for non-uniform cache objects with optimal eviction . In IEEE INFOCOM Conference on Computer Communications. Bahat, O. and Makowski, A. M. 2001. Optimal replacement policies for non-uniform cache objects with optimal eviction. In IEEE INFOCOM Conference on Computer Communications."},{"key":"e_1_2_1_6_1","volume-title":"Tech. Rep. HPL-1999-77, Hewlett Packard. June.","author":"Bala V.","year":"1999","unstructured":"Bala , V. , Duesterwald , E. , and Banerjia , S . 1999 . Transparent dynamic optimization. Tech. Rep. HPL-1999-77, Hewlett Packard. June. Bala, V., Duesterwald, E., and Banerjia, S. 1999. Transparent dynamic optimization. Tech. Rep. HPL-1999-77, Hewlett Packard. June."},{"key":"e_1_2_1_7_1","volume-title":"Conference on Programming Language Design and Implementation. 1--12","author":"Bala V.","unstructured":"Bala , V. , Duesterwald , E. , and Banerjia , S . 2000. Dynamo: A transparent dynamic optimization system . In Conference on Programming Language Design and Implementation. 1--12 . 10.1145\/349299.349303 Bala, V., Duesterwald, E., and Banerjia, S. 2000. Dynamo: A transparent dynamic optimization system. In Conference on Programming Language Design and Implementation. 1--12. 10.1145\/349299.349303"},{"key":"e_1_2_1_8_1","volume-title":"4th ACM Workshop on Feedback-Directed and Dynamic Optimization (FDDO-4).","author":"Bruening D.","unstructured":"Bruening , D. , Duesterwald , E. , and Amarasinghe , S . 2001. Design and implementation of a dynamic optimization framework for Windows . In 4th ACM Workshop on Feedback-Directed and Dynamic Optimization (FDDO-4). Bruening, D., Duesterwald, E., and Amarasinghe, S. 2001. Design and implementation of a dynamic optimization framework for Windows. In 4th ACM Workshop on Feedback-Directed and Dynamic Optimization (FDDO-4)."},{"key":"e_1_2_1_9_1","volume-title":"1st International Symposium on Code Generation and Optimization. 265--275","author":"Bruening D.","unstructured":"Bruening , D. , Garnett , T. , and Amarasinghe , S . 2003. An infrastructure for adaptive dynamic optimization . In 1st International Symposium on Code Generation and Optimization. 265--275 . Bruening, D., Garnett, T., and Amarasinghe, S. 2003. An infrastructure for adaptive dynamic optimization. In 1st International Symposium on Code Generation and Optimization. 265--275."},{"key":"e_1_2_1_10_1","volume-title":"IEEE International SOC Conference (ASIC\/SOC'03)","author":"Chen G.","unstructured":"Chen , G. , Kandemir , M. , Vijaykrishnan , N. , and Irwin , M. J . 2003. Energy-aware code cache management for memory-constrained Java devices . In IEEE International SOC Conference (ASIC\/SOC'03) . Chen, G., Kandemir, M., Vijaykrishnan, N., and Irwin, M. J. 2003. Energy-aware code cache management for memory-constrained Java devices. In IEEE International SOC Conference (ASIC\/SOC'03)."},{"key":"e_1_2_1_11_1","volume-title":"Ninth Asia-Pacific Computer Systems Architecture Conference (ACSAC","author":"Chen H.","year":"2004","unstructured":"Chen , H. , Hsu , W.-C. , Lu , J. , and Yew , P . -C. 2004. Continuous adaptive object-code re-optimization framework . In Ninth Asia-Pacific Computer Systems Architecture Conference (ACSAC 2004 ). 241--255. Chen, H., Hsu, W.-C., Lu, J., and Yew, P.-C. 2004. Continuous adaptive object-code re-optimization framework. In Ninth Asia-Pacific Computer Systems Architecture Conference (ACSAC 2004). 241--255."},{"key":"e_1_2_1_12_1","volume-title":"4th ACM Workshop on Feedback-Directed and Dynamic Optimization. 81--90","author":"Chen W.-K.","unstructured":"Chen , W.-K. , Lerner , S. , Chaiken , R. , and Gillies , D . 2000. Mojo: A dynamic optimization system . In 4th ACM Workshop on Feedback-Directed and Dynamic Optimization. 81--90 . Chen, W.-K., Lerner, S., Chaiken, R., and Gillies, D. 2000. Mojo: A dynamic optimization system. In 4th ACM Workshop on Feedback-Directed and Dynamic Optimization. 81--90."},{"key":"e_1_2_1_13_1","volume-title":"Tech. Rep. TR2002-106, Jan. Sun Microsystems Laboratories, Palo Alto.","author":"Cifuentes C.","year":"2002","unstructured":"Cifuentes , C. , Lewis , B. , and Ung , D . 2002 . Walkabout - a retargetable dynamic binary translation framework. Tech. Rep. TR2002-106, Jan. Sun Microsystems Laboratories, Palo Alto. Cifuentes, C., Lewis, B., and Ung, D. 2002. Walkabout - a retargetable dynamic binary translation framework. Tech. Rep. TR2002-106, Jan. Sun Microsystems Laboratories, Palo Alto."},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/183019.183032"},{"key":"e_1_2_1_15_1","volume-title":"1st International Symposium on Code Generation and Optimization. 15--24","author":"Dehnert J. C.","unstructured":"Dehnert , J. C. , Grant , B. K. , Banning , J. P. , Johnson , R. , Kistler , T. , Klaiber , A. , and Mattson , J . 2003. The transmeta code morphing software: Using speculation, recovery, and adaptive retranslation to address real-life challenges . In 1st International Symposium on Code Generation and Optimization. 15--24 . Dehnert, J. C., Grant, B. K., Banning, J. P., Johnson, R., Kistler, T., Klaiber, A., and Mattson, J. 2003. The transmeta code morphing software: Using speculation, recovery, and adaptive retranslation to address real-life challenges. In 1st International Symposium on Code Generation and Optimization. 15--24."},{"key":"e_1_2_1_16_1","volume-title":"35th International Symposium on Microarchitecture. 257--268","author":"Desoli G.","unstructured":"Desoli , G. , Mateev , N. , Duesterwald , E. , Faraboschi , P. , and Fisher , J. A . 2002. Deli: A new run-time control point . In 35th International Symposium on Microarchitecture. 257--268 . Desoli, G., Mateev, N., Duesterwald, E., Faraboschi, P., and Fisher, J. A. 2002. Deli: A new run-time control point. In 35th International Symposium on Microarchitecture. 257--268."},{"key":"e_1_2_1_17_1","volume-title":"24th International Symposium on Computer Architecture. 26--37","author":"Ebcioglu K.","unstructured":"Ebcioglu , K. and Altman , E . 1997. DAISY: Dynamic compilation for 100&percnt; architectural compatibility . In 24th International Symposium on Computer Architecture. 26--37 . 10.1145\/264107.264126 Ebcioglu, K. and Altman, E. 1997. DAISY: Dynamic compilation for 100&percnt; architectural compatibility. In 24th International Symposium on Computer Architecture. 26--37. 10.1145\/264107.264126"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/12.931892"},{"key":"e_1_2_1_20_1","volume-title":"6th Workshop on Interaction between Compilers and Computer Architectures. 102--110","author":"Hazelwood K.","unstructured":"Hazelwood , K. and Smith , M. D . 2002. Code cache management schemes for dynamic optimizers . In 6th Workshop on Interaction between Compilers and Computer Architectures. 102--110 . Hazelwood, K. and Smith, M. D. 2002. Code cache management schemes for dynamic optimizers. In 6th Workshop on Interaction between Compilers and Computer Architectures. 102--110."},{"key":"e_1_2_1_21_1","volume-title":"36th International Symposium on Microarchitecture","author":"Hazelwood K.","unstructured":"Hazelwood , K. and Smith , M. D . 2003. Generational cache management of code traces in dynamic optimization systems . In 36th International Symposium on Microarchitecture . San Diego, CA. 169--179. Hazelwood, K. and Smith, M. D. 2003. Generational cache management of code traces in dynamic optimization systems. In 36th International Symposium on Microarchitecture. San Diego, CA. 169--179."},{"key":"e_1_2_1_22_1","volume-title":"2nd International Symposium on Code Generation and Optimization","author":"Hazelwood K.","unstructured":"Hazelwood , K. and Smith , J. E . 2004. Exploring code cache eviction granularities in dynamic optimization systems . In 2nd International Symposium on Code Generation and Optimization . Palo Alto, CA, 89--99. Hazelwood, K. and Smith, J. E. 2004. Exploring code cache eviction granularities in dynamic optimization systems. In 2nd International Symposium on Code Generation and Optimization. Palo Alto, CA, 89--99."},{"key":"e_1_2_1_23_1","unstructured":"Hinton G. Sager D. Upton M. Boggs D. Carmean D. Kyker A. and Roussel P. 2001. The Microarchitecture of the Pentium 4 Processor. Intel Technology Journal.  Hinton G. Sager D. Upton M. Boggs D. Carmean D. Kyker A. and Roussel P. 2001. The Microarchitecture of the Pentium 4 Processor. Intel Technology Journal."},{"key":"e_1_2_1_24_1","unstructured":"Hookway R. J. and Herdeg M. A. 1997. Digital FX&excl;32: Combining emulation and binary translation. Digital Technical Journal 3--12.   Hookway R. J. and Herdeg M. A. 1997. Digital FX&excl;32: Combining emulation and binary translation. Digital Technical Journal 3--12."},{"key":"e_1_2_1_25_1","volume-title":"17th International Symposium on Computer Architecture. 364--373","author":"Jouppi N. P.","year":"1990","unstructured":"Jouppi , N. P. 1990 . Improving direct-mapped cache performance by the addition of a small fully-associative cache and prefetch buffers . In 17th International Symposium on Computer Architecture. 364--373 . 10.1145\/325164.325162 Jouppi, N. P. 1990. Improving direct-mapped cache performance by the addition of a small fully-associative cache and prefetch buffers. In 17th International Symposium on Computer Architecture. 364--373. 10.1145\/325164.325162"},{"key":"e_1_2_1_26_1","volume-title":"14th Conference on Parallel and Distributed Computing Systems.","author":"London K.","unstructured":"London , K. , Dongarra , J. , Moore , S. , Mucci , P. , Seymour , K. , and Spencer , T . 2001. End-user tools for application performance analysis using hardware counters . In 14th Conference on Parallel and Distributed Computing Systems. London, K., Dongarra, J., Moore, S., Mucci, P., Seymour, K., and Spencer, T. 2001. End-user tools for application performance analysis using hardware counters. In 14th Conference on Parallel and Distributed Computing Systems."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065034"},{"key":"e_1_2_1_28_1","volume-title":"24th International Symposium on Computer Architecture. 13--25","author":"Nair R.","unstructured":"Nair , R. and Hopkins , M . 1997. Exploiting instruction level parallelism in processors by caching scheduled groups . In 24th International Symposium on Computer Architecture. 13--25 . 10.1145\/264107.264125 Nair, R. and Hopkins, M. 1997. Exploiting instruction level parallelism in processors by caching scheduled groups. In 24th International Symposium on Computer Architecture. 13--25. 10.1145\/264107.264125"},{"key":"e_1_2_1_29_1","volume-title":"Proceedings of the 3rd Workshop on Runtime Verification. http:\/\/valgrind.kde.org\/.","author":"Nethercote N.","unstructured":"Nethercote , N. and Seward , J . 2003. Valgrind: A program supervision framework . In Proceedings of the 3rd Workshop on Runtime Verification. http:\/\/valgrind.kde.org\/. Nethercote, N. and Seward, J. 2003. Valgrind: A program supervision framework. In Proceedings of the 3rd Workshop on Runtime Verification. http:\/\/valgrind.kde.org\/."},{"key":"e_1_2_1_30_1","volume-title":"6th International Conference on High Performance Computer Architecture. 325--340","author":"Ramirez A.","unstructured":"Ramirez , A. , Larriba-Pey , J.-L. , and Valero , M . 2000. Trace cache redundancy: Red & blue traces . In 6th International Conference on High Performance Computer Architecture. 325--340 . Ramirez, A., Larriba-Pey, J.-L., and Valero, M. 2000. Trace cache redundancy: Red & blue traces. In 6th International Conference on High Performance Computer Architecture. 325--340."},{"key":"e_1_2_1_31_1","volume-title":"10th Conference on Parallel Architectures and Compilation Techniques. 37--48","author":"Rosner R.","unstructured":"Rosner , R. , Mendelson , A. , and Ronen , R . 2001. Filtering techniques to improve trace-cache efficiency . In 10th Conference on Parallel Architectures and Compilation Techniques. 37--48 . Rosner, R., Mendelson, A., and Ronen, R. 2001. Filtering techniques to improve trace-cache efficiency. In 10th Conference on Parallel Architectures and Compilation Techniques. 37--48."},{"key":"e_1_2_1_32_1","volume-title":"25th Euromicro Conference. 1416--1423","author":"Sahuquillo J.","unstructured":"Sahuquillo , J. and Pont , A . 1999. The filter cache: A run-time cache management approach . In 25th Euromicro Conference. 1416--1423 . Sahuquillo, J. and Pont, A. 1999. The filter cache: A run-time cache management approach. In 25th Euromicro Conference. 1416--1423."},{"key":"e_1_2_1_33_1","volume-title":"1st International Symposium on Code Generation and Optimization. 36--47","author":"Scott K.","unstructured":"Scott , K. , Kumar , N. , Velusamy , S. , Childers , B. , Davidson , J. W. , and Soffa , M. L . 2003. Retargetable and reconfigurable software dynamic translation . In 1st International Symposium on Code Generation and Optimization. 36--47 . Scott, K., Kumar, N., Velusamy, S., Childers, B., Davidson, J. W., and Soffa, M. L. 2003. Retargetable and reconfigurable software dynamic translation. In 1st International Symposium on Code Generation and Optimization. 36--47."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/390011.808261"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/505696.505701"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/233013.233025"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/1071604.1071606"},{"key":"e_1_2_1_38_1","volume-title":"Conference on Virtual Execution Environments. 10","author":"Zhou S.","unstructured":"Zhou , S. , Childers , B. R. , and Soffa , M. L . 2005. Planning for code buffer management in distributed virtual execution environments . In Conference on Virtual Execution Environments. 10 .1145\/1064979.1064994 Zhou, S., Childers, B. R., and Soffa, M. L. 2005. Planning for code buffer management in distributed virtual execution environments. In Conference on Virtual Execution Environments. 10.1145\/1064979.1064994"}],"container-title":["ACM Transactions on Architecture and Code Optimization"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1162690.1162692","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T18:50:05Z","timestamp":1672253405000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1162690.1162692"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2006,9]]},"references-count":37,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2006,9]]}},"alternative-id":["10.1145\/1162690.1162692"],"URL":"https:\/\/doi.org\/10.1145\/1162690.1162692","relation":{},"ISSN":["1544-3566","1544-3973"],"issn-type":[{"value":"1544-3566","type":"print"},{"value":"1544-3973","type":"electronic"}],"subject":[],"published":{"date-parts":[[2006,9]]},"assertion":[{"value":"2006-09-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}