arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.04013cs.PLcs.SE
收藏

C程序类型安全产品线的核心演算

A Core Calculus for Type-safe Product Lines of C Programs

University of Turin(都灵大学);Toho University(东邦大学);National Institute of Informatics(国立情报学研究所)

Ferruccio Damiani, Daisuke Kimura, Luca Paolini, Makoto Tatsuta

AI总结:

本文提出轻量级C核心演算及着色LC,设计类型系统确保C预处理器生成程序的类型安全性,适用于教学与研究。

摘要:

在本文中,我们:(1)提出了轻量级C(LC),即一个核心演算,它形式化了不包含预处理器指令的ANSI C的子集;(2)定义了着色LC(CLC),即带有ANSI C预处理器指令的LC;(3)为CLC定义了一个类型系统,确保通过C预处理器生成的所有程序都是正确类型的C程序。我们认为,CLC提供的简单形式化可能也对教学有帮助。Stefano Berardi在意大利都灵大学计算机科学系度过了大部分学术生涯,他从事计算机科学逻辑基础和基于类型的程序分析方面的杰出研究。多年来,他教授了从C语言编程本科课程到程序分析博士课程的许多课程。因此,本文完全符合Stefano Berardi的研究和教学活动。

英文摘要:

In this paper we: (1) propose Lightweight C (LC), namely a core calculus that formalizes a proper subset of the ANSI C without preprocessor directives; (2) define Colored LC (CLC), namely LC endowed with ANSI C preprocessor directives; and (3) define a type system for CLC that guarantees that all programs to be generated by the C preprocessor are well-typed C programs. We believe that the simple formalization provided by CLC could be useful also for teaching purposes. Stefano Berardi spent most of his academic career at the Department of Computer Science of the University of Turin, where he conducts outstanding research on the logical foundations of computer science and on type-based program analyses. Over the years, he taught many courses, from BSc courses on programming with C to PhD courses on program analysis. Therefore, this paper fully falls within Stefano Berardi's research and teaching activities.

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

↑