arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1202.6472cs.LOcs.SE
收藏

使用Compcert认证ARM模拟器的第一步

First steps towards the certification of an ARM simulator using Compcert

Xiaomu Shi, Jean-François Monin, Frederic Tuong, Frédéric Blanqui

摘要:

片上系统(SoC)的仿真是当今的热门话题,因为除了提供许多调试设施外,它还允许在硬件可用之前开发专用软件。ARM等低功耗CPU在SoC中起着核心作用,而仿真的有效性取决于仿真器的真实性。为此,我们建议在这里证明这样的模拟器,SimSoC的重要组成部分。基本上,一方面,我们开发了一个Coq的ARM架构的正式模型,而另一方面,我们考虑了一个版本的模拟器,包括组件编写的Compcert-C。然后,我们证明了ARM操作的模拟,根据Compcert-C的形式语义,符合预期的ARM的形式化模型。尺寸问题部分处理使用的Coq模型和SimSoC的重要部分的自动生成从ARM的官方文本定义。然而,这仍然是一个长期的项目。我们在这里报告我们目前的工作阶段,并特别讨论在这个框架中使用Compcert-C。

英文摘要:

The simulation of Systems-on-Chip (SoC) is nowadays a hot topic because, beyond providing many debugging facilities, it allows the development of dedicated software before the hardware is available. Low-consumption CPUs such as ARM play a central role in SoC. However, the effectiveness of simulation depends on the faithfulness of the simulator. To this effect, we propose here to prove significant parts of such a simulator, SimSoC. Basically, on one hand, we develop a Coq formal model of the ARM architecture while on the other hand, we consider a version of the simulator including components written in Compcert-C. Then we prove that the simulation of ARM operations, according to Compcert-C formal semantics, conforms to the expected formal model of ARM. Size issues are partly dealt with using automatic generation of significant parts of the Coq model and of SimSoC from the official textual definition of ARM. However, this is still a long-term project. We report here the current stage of our efforts and discuss in particular the use of Compcert-C in this framework.

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

↑