arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.07167cs.PLcs.OS
收藏

用程序合成移植操作系统

Towards Porting Operating Systems with Program Synthesis

Jingmei Hu, Eric Lu, David A. Holland, Ming Kawaguchi, Stephen Chong, Margo I. Seltzer

摘要:

摩尔定律的终结带来了几十年来从未见过的硬件多样性。因此,操作系统(和系统软件)的可移植性变得越来越重要。与此同时,程序合成也取得了巨大的进展。我们开始探索使用现代程序合成来生成操作系统的机器相关部分的可行性。我们的最终目标是根据新机器的描述自动生成新的端口。所涉及的问题之一是编写与机器相关的操作系统功能和指令集体系结构的规范。我们设计了两个领域特定的语言:Alewife的机器无关规范的机器依赖的操作系统功能和Cassiopea的描述指令集体系结构的语义。自动化移植也需要实现。我们开发了一个工具链,给出了Alewife规范和Cassiopea机器描述,将机器独立规范专门化到目标指令集架构,并使用自定义的符号执行引擎合成汇编语言实现。使用这种方法,我们证明了成功的合成共140个操作系统组件从两个预先存在的操作系统为四个真正的硬件平台。我们还开发了几种优化方法,用于操作系统相关的组装合成,以提高可扩展性。我们的语言的有效性和能力,合成代码的所有140个规范是程序合成的可行性,机器依赖的操作系统代码的证据。然而,许多研究的挑战仍然存在,我们还讨论了我们的合成为基础的方法自动操作系统移植的好处和局限性。

英文摘要:

The end of Moore's Law has ushered in a diversity of hardware not seen in decades. Operating system (and system software) portability is accordingly becoming increasingly critical. Simultaneously, there has been tremendous progress in program synthesis. We set out to explore the feasibility of using modern program synthesis to generate the machine-dependent parts of an operating system. Our ultimate goal is to generate new ports automatically from descriptions of new machines. One of the issues involved is writing specifications, both for machine-dependent operating system functionality and for instruction set architectures. We designed two domain-specific languages: Alewife for machine-independent specifications of machine-dependent operating system functionality and Cassiopea for describing instruction set architecture semantics. Automated porting also requires an implementation. We developed a toolchain that, given an Alewife specification and a Cassiopea machine description, specializes the machine-independent specification to the target instruction set architecture and synthesizes an implementation in assembly language with a customized symbolic execution engine. Using this approach, we demonstrate successful synthesis of a total of 140 OS components from two pre-existing OSes for four real hardware platforms. We also developed several optimization methods for OS-related assembly synthesis to improve scalability. The effectiveness of our languages and ability to synthesize code for all 140 specifications is evidence of the feasibility of program synthesis for machine-dependent OS code. However, many research challenges remain; we also discuss the benefits and limitations of our synthesis-based approach to automated OS porting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑