Lune

POPL2023顶会

Formally Verified Native Code Generation in an Effectful JIT: Turning the CompCert Backend into a Formally Verified JIT Compiler

Aurèle Barrière, Sandrine Blazy, David Pichardie

摘要

Modern Just-in-Time compilers (or JITs) typically interleave several mechanisms to execute a program. For faster startup times and to observe the initial behavior of an execution, interpretation can be initially used. But after a while, JITs dynamically produce native code for parts of the program they execute often. Although some time is spent compiling dynamically, this mechanism makes for much faster times for the remaining of the program execution. Such compilers are complex pieces of software with various components, and greatly rely on a precise interplay between the different languages being executed, including on-stack-replacement. Traditional static compilers like CompCert have been mechanized in proof assistants, but JITs have been scarcely formalized so far, partly due to their impure nature and their numerous components. This work presents a model JIT with dynamic generation of native code, implemented and formally verified in Coq. Although some parts of a JIT cannot be written in Coq, we propose a proof methodology to delimit, specify and reason on the impure effects of a JIT. We argue that the daunting task of formally verifying a complete JIT should draw on existing proofs of native code generation. To this end, our work successfully reuses CompCert and its correctness proofs during dynamic compilation. Finally, our prototype can be extracted and executed.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Formally verified speculation and deoptimization in a JIT compiler 引用了 CompCertM: CompCert with C-assembly linking and lightweight modular verification
  • End-to-End Mechanized Proof of a JIT-Accelerated eBPF Virtual Machine for IoT 引用了 Formally verified speculation and deoptimization in a JIT compiler
  • Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine 引用了 Towards a verified range analysis for JavaScript JITs
  • Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine 引用了 Formally verified speculation and deoptimization in a JIT compiler
  • Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine 引用了 Icarus: Trustworthy Just-In-Time Compilers with Symbolic Meta-Execution
  • Translation Validation for JIT Compiler in the V8 JavaScript Engine 引用了 Towards a verified range analysis for JavaScript JITs
  • Translation Validation for JIT Compiler in the V8 JavaScript Engine 引用了 Formally verified speculation and deoptimization in a JIT compiler
  • Cakes That Bake Cakes: Dynamic Computation in CakeML 引用了 Formally verified speculation and deoptimization in a JIT compiler
  • Cakes That Bake Cakes: Dynamic Computation in CakeML 引用了 Interaction trees: representing recursive and impure programs in Coq
  • Cakes That Bake Cakes: Dynamic Computation in CakeML 引用了 CompCertM: CompCert with C-assembly linking and lightweight modular verification
  • Icarus: Trustworthy Just-In-Time Compilers with Symbolic Meta-Execution 引用了 Towards a verified range analysis for JavaScript JITs
  • Icarus: Trustworthy Just-In-Time Compilers with Symbolic Meta-Execution 引用了 Formally verified speculation and deoptimization in a JIT compiler
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Translation Validation for JIT Compiler in the V8 JavaScript EngineSeungwan Kwon, Jaeseong Kwon, Wooseok Kang, Juneyoung Lee 等ICSE 2024 · 19 次引用
  2. End-to-End Mechanized Proof of a JIT-Accelerated eBPF Virtual Machine for IoTShenghao Yuan, Frédéric Besson, Jean-Pierre TalpinCAV 2024 · 18 次引用
  3. Icarus: Trustworthy Just-In-Time Compilers with Symbolic Meta-ExecutionNaomi Smith, Abhishek Sharma, John Renner, David Thien 等SOSP 2024 · 17 次引用
  4. Cakes That Bake Cakes: Dynamic Computation in CakeMLThomas Sewell, Magnus O. Myreen, Yong Kiam Tan, Ramana Kumar 等PLDI 2023 · 16 次引用
  5. Mohabi: Disaggregating and Sandboxing the Firefox JavaScript EngineAbhishek Sharma, Anand Balaji, Zachary Yedidia, Anthony Du 等OSDI 2026 · 1 次引用

它引用的 Paper5

  1. Interaction trees: representing recursive and impure programs in CoqLi-yao Xia, Yannick Zakowski, Paul He, Chung-Kil Hur 等POPL 2020 · 133 次引用
  2. CompCertM: CompCert with C-assembly linking and lightweight modular verificationYoungju Song, Minki Cho, Dongjoo Kim, Yonghyun Kim 等POPL 2020 · 49 次引用
  3. Formally verified speculation and deoptimization in a JIT compilerAurèle Barrière, Sandrine Blazy, Olivier Flückiger, David Pichardie 等POPL 2021 · 38 次引用
  4. Two Mechanisations of WebAssembly 1.0Conrad Watt, Xiaojia Rao, Jean Pichon-Pharabod, Martin Bodin 等FM 2021 · 32 次引用
  5. Towards a verified range analysis for JavaScript JITsFraser Brown, John Renner, Andres Nötzli, Sorin Lerner 等PLDI 2020 · 28 次引用

相关 Paper

  1. Fully Verified Instruction SchedulingZiteng Yang, Jun Shirako, Vivek SarkarOOPSLA 2024 · 1 次引用
  2. Verified Density Compilation for a Probabilistic Programming LanguageJoseph Tassarotti, Jean-Baptiste TristanPLDI 2023 · 6 次引用
  3. Certified and efficient instruction scheduling: application to interlocked VLIW processorsCyril Six, Sylvain Boulmé, David MonniauxOOPSLA 2020 · 21 次引用
  4. Verified Extraction from Coq to OCamlYannick Forster, Matthieu Sozeau, Nicolas TabareauPLDI 2024 · 13 次引用
  5. Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernelLuke Nelson, Jacob Van Geffen, Emina Torlak, Xi WangOSDI 2020 · 72 次引用
黄昏的海面,两侧是细线勾勒的悬崖