Precise exception semantics in dynamic compilation

被引:0
|
作者
Gschwind, M [1 ]
Altman, E [1 ]
机构
[1] IBM Corp, Thomas J Watson Res Ctr, Yorktown Hts, NY 10598 USA
来源
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Maintaining precise exceptions is an important aspect of achieving full compatibility with a legacy architecture. While asynchronous exceptions can be deferred to an appropriate boundary in the code, synchronous exceptions must be taken when they occur. This introduces uncertainty into liveness analysis since processor state that is otherwise dead may be exposed when an exception handler is invoked. Previous systems either had to sacrifice full compatibility to achieve more freedom to perform optimization, use less aggressive optimization or rely on hardware support. In this work, we demonstrate how aggressive optimization can be used in conjunction with dynamic compilation without the need for specialized hardware. The approach is based on maintaining enough state to recompute the processor state when an unpredicted event such as a synchronous exception may make otherwise dead processor state visible. The transformations necessary to preserve precise exception capability can be performed in linear time.
引用
收藏
页码:95 / 110
页数:16
相关论文
共 50 条
  • [1] Speculative Execution of Parallel Programs with Precise Exception Semantics on GPUs
    Hayashi, Akihiro
    Grossman, Max
    Zhao, Jisheng
    Shirako, Jun
    Sarkar, Vivek
    [J]. LANGUAGES AND COMPILERS FOR PARALLEL COMPUTING, LCPC 2013, 2014, 8664 : 342 - 356
  • [2] ALGEBRAIC SEMANTICS OF EXCEPTION HANDLING
    BERNOT, G
    BIDOIT, M
    CHOPPY, C
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1986, 213 : 173 - 186
  • [3] From Mechanized Semantics to Verified Compilation: the Clight Semantics of CompCert
    Blazy, Sandrine
    [J]. FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, FASE 2024, 2024, 14573 : 1 - 21
  • [4] Incorporating application semantics and control into compilation
    Engler, DR
    [J]. PROCEEDINGS OF THE CONFERENCE ON DOMAIN-SPECIFIC LANGUAGES, 1997, : 103 - 117
  • [5] Compilation Semantics for a Programming Language with Versions
    Tanabe, Yudai
    Lubis, Luthfan Anshar
    Aotani, Tomoyuki
    Masuhara, Hidehiko
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, APLAS 2023, 2023, 14405 : 3 - 23
  • [6] 2-LEVEL FORMAL SEMANTICS AND SEMANTICS-DIRECTED COMPILATION
    TANG, ZS
    ZHENG, MS
    LI, X
    [J]. SCIENTIA SINICA SERIES A-MATHEMATICAL PHYSICAL ASTRONOMICAL & TECHNICAL SCIENCES, 1985, 28 (09): : 991 - 1001
  • [7] 2-LEVEL FORMAL SEMANTICS AND SEMANTICS-DIRECTED COMPILATION
    唐稚松
    郑茂松
    李新
    [J]. Science China Mathematics, 1985, (09) : 991 - 1001
  • [8] A Compositional Semantics for Verified Separate Compilation and Linking
    Ramananandro, Tahina
    Shao, Zhong
    Weng, Shu-Chun
    Koenig, Jeremie
    Fu, Yuchen
    [J]. CPP'15: PROCEEDINGS OF THE 2015 ACM CONFERENCE ON CERTIFIED PROGRAMS AND PROOFS, 2015, : 3 - 14
  • [9] SEMANTICS-DIRECTED COMPILATION OF NONLINEAR PATTERNS
    DANVY, O
    [J]. INFORMATION PROCESSING LETTERS, 1991, 37 (06) : 315 - 322
  • [10] SEMANTICS AND EFFICIENT COMPILATION FOR QUANTITATIVE DEDUCTIVE DATABASES
    STEGER, N
    SCHMIDT, H
    GUNTZER, U
    KIESSLING, W
    [J]. PROCEEDINGS : FIFTH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, 1989, : 660 - 669