Denotational semantics of ANSI C

被引:12
|
作者
Papaspyrou, NS [1 ]
机构
[1] Natl Tech Univ Athens, Software Engn Lab, Dept Elect & Comp Engn, Polytechnioupoli, Athens 15780, Greece
关键词
ANSI C programming language; ISO/IEC 9899 : 1999 standard; formal definition; denotational semantics; monads;
D O I
10.1016/S0920-5489(01)00059-9
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The semantics of C is described in the ANSI/ISO standard using natural language. This paper contains a brief summary, more descriptive than technical, of our research in specifying a complete and accurate formal semantics for ANSI C. We follow the denotational approach and divide the specification in three distinct phases: static, typing and dynamic semantics. Moreover, we have developed a direct implementation of the semantics, using the programming language Haskell. We argue that our formal specification results in a better understanding of the semantics of ANSI C and comment on its readability, precision, abstraction and applications. (C) 2001 Elsevier Science B.V. All rights reserved.
引用
收藏
页码:169 / 185
页数:17
相关论文
共 50 条