收藏切换
Code Cache Optimization Schemes Based on Fine-Grained State Label
收藏切换
Gen Niu, Fuxin Zhang*
Journal of Computer Research and Development | 2025, 62(8) : 1931 - 1947
Less
收藏切换
Journal of Computer Research and Development | 2025, 62(8): 1931-1947
• Computer Architecture •
Code Cache Optimization Schemes Based on Fine-Grained State Label
Full
Gen Niu, Fuxin Zhang*
Affiliations
  • State Key Lab of Processors (Institute of Computing Technology, Chinese Academy of Sciences), Beijing 100190
  • University of Chinese Academy of Sciences, Beijing 100049
  • born in 1996. PhD candidate. Student member of CCF. His research interests include virtualization and binary translation

    born in 1976. PhD, professor. Senior member of CCF. His main research interests include computer architecture, binary translation, and operation system

About Author:

born in 1996. PhD candidate. Student member of CCF. His research interests include virtualization and binary translation

born in 1976. PhD, professor. Senior member of CCF. His main research interests include computer architecture, binary translation, and operation system

Published: 2025-08-01 doi: 10.7544/issn1000-1239.202330856
Outline
收藏切换

Software code cache is widely used in dynamic binary translators to manage the dynamically generated code blocks. The translation, refresh, and memory occupancy of code blocks are key metrics for software code cache. There has been little research on software code cache for system-level dynamic binary translators. Existing system-level dynamic binary translators use state label scheme to achieve correct and efficient instruction semantic simulation, but this scheme introduces additional problems for software code cache management. Through in-depth analysis of the state label scheme, two types of problems are summarized: conflicts and redundancies. To address these two problems, two code cache optimization schemes based on fine-grained state label are proposed, including multi-state code cache scheme and weak state label scheme. These two schemes are implemented in LATX-SYS and evaluated with Ubuntu/x86 16.04 and Windows XP/x86 system booting on LoongArch platform. The evaluation results show that the code block refresh and translation are reduced by 43% and 18% respectively. The code block similarity ratio is decreased from 59.63% to 5.06%. The translation overhead and memory occupancy are both reduced. Overall, the system boot time is reduced by 20%. Finally, testing of the weak state label scheme on SPEC CPU2000 shows that the number of code blocks is reduced by an average of 13%, with only 2%−3% performance overhead introduced.

software code cache  /  binary translation  /  virtualization  /  code block  /  dynamic optimization
牛根, 张福新. 基于细粒度状态标签的代码缓存优化方案. 计算机研究与发展, 2025 , 62 (8) : 1931 -1947 . DOI: 10.7544/issn1000-1239.202330856
Gen Niu, Fuxin Zhang. Code Cache Optimization Schemes Based on Fine-Grained State Label[J]. Journal of Computer Research and Development, 2025 , 62 (8) : 1931 -1947 . DOI: 10.7544/issn1000-1239.202330856
Year 2025 volume 62 Issue 8
96
40
Cite this Article
BibTeX
Article Info
doi: 10.7544/issn1000-1239.202330856
  • Receive Date:2023-10-31
  • Online Date:2026-11-10
  • Published:2025-08-01
Article Data
Affiliations
History
  • Received:2023-10-31
  • Revised:2025-01-07
  • Accepted:2025-01-26
Affiliations
    State Key Lab of Processors (Institute of Computing Technology, Chinese Academy of Sciences), Beijing 100190
    University of Chinese Academy of Sciences, Beijing 100049
References
Share
https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/10.7544/issn1000-1239.202330856
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT