已验证编译器中的内存模拟、安全性与优化
Memory Simulations, Security and Optimization in a Verified Compiler
AI总结:
针对编译器安全特性与优化需跨内存布局模拟原程序的问题,本文通过内存扩展、注入及未定义值细节,在CompCert验证编译器中实现并证明了两项安全特性和一项尾递归消除优化的正确性。
摘要:
当前编译器实现的安全特性与优化需要对指针和内存分配进行复杂的语义推理:插入安全特性后或应用优化后的程序,尽管内存布局不同,必须能模拟原始程序。本文通过内存扩展与注入以及未定义值的细节,阐释了我们如何在CompCert形式化验证编译器中实现并证明两项安全特性(栈金丝雀和指针认证)与一项优化(尾递归消除)的正确性,以此说明指针分配上的此类推理。
英文摘要:
Current compilers implement security features and optimizations that require nontrivial semantic reasoning about pointers and memory allocation: the program after the insertion of the security feature, or after applying the optimization, must simulate the original program despite a different memory layout. In this article, we illustrate such reasoning on pointer allocations through memory extensions and injections, as well as fine points on undefined values, by explaining how we implemented and proved correct two security features (stack canaries and pointer authentication) and one optimization (tail recursion elimination) in the CompCert formally verified compiler.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。