A Concrete Memory Model for CompCert

被引:14
作者
Besson, Frederic [1 ]
Blazy, Sandrine [2 ]
Wilke, Pierre [2 ]
机构
[1] INRIA, Rennes, France
[2] Univ Rennes 1, IRISA, Rennes, France
来源
INTERACTIVE THEOREM PROVING | 2015年 / 9236卷
关键词
FORMAL VERIFICATION;
D O I
10.1007/978-3-319-22102-1_5
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Semantics preserving compilation of low-level C programs is challenging because their semantics is implementation defined according to the C standard. This paper presents the proof of an enhanced and more concrete memory model for the CompCert C compiler which assigns a definite meaning to more C programs. In our new formally verified memory model, pointers are still abstract but are nonetheless mapped to concrete 32-bit integers. Hence, the memory is finite and it is possible to reason about the binary encoding of pointers. We prove that the existing memory model is an abstraction of our more concrete model thus validating formally the soundness of CompCert's abstract semantics of pointers. We also show how to adapt the front-end of CompCert thus demonstrating that it should be feasible to port the whole compiler to our novel memory model.
引用
收藏
页码:67 / 83
页数:17
相关论文
共 22 条
[1]  
Besson Frederic, 2014, Programming Languages and Systems. 12th Asian Symposium (APLAS 2014), Proceedings: LNCS 8858, P449, DOI 10.1007/978-3-319-12736-1_24
[2]  
Blazy S, 2007, C C VER WORKSH RAB U
[3]   Mechanized Semantics for the Clight Subset of the C Language [J].
Blazy, Sandrine ;
Leroy, Xavier .
JOURNAL OF AUTOMATED REASONING, 2009, 43 (03) :263-288
[4]  
Clements AustinT., 2013, SOSP
[5]   A Precise Yet Efficient Memory Model For C [J].
Cohen, Ernie ;
Moskal, Michal ;
Tobies, Stephan ;
Schulte, Wolfram .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 254 :85-103
[6]  
Cohen E, 2009, LECT NOTES COMPUT SC, V5674, P23, DOI 10.1007/978-3-642-03359-9_2
[7]  
Ellison C., 2012, POPL
[8]  
Franca R. B, 2012, ERTS2
[9]  
Greenaway David, 2012, Interactive Theorem Proving. Proceedings of the Third International Conference, ITP 2012, P99, DOI 10.1007/978-3-642-32347-8_8
[10]  
Greenaway D, 2014, PLDI