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

MISRA C指南的一种基于字典的分类

A Rationale-Based Classification of MISRA C Guidelines

Roberto Bagnara, Abramo Bagnara, Patricia M. Hill

摘要:

MISRA C是C程序设计语言最权威的语言子集,在安全性和安全性至关重要的多个行业领域,C是一个事实标准。虽然MISRA C目前在175个准则(编码规则和指令)中进行了编码,但它与这些准则并不一致:正确采用MISRA C需要采用其预防方法(而不是“缺陷发现”方法)和记录在案的开发流程,其中合理的不合规行为被授权并记录为偏差。MISRA C指南在MISRA官方文件中沿着几个轴分类。在本文中,我们添加到这些正交分类,关联的准则与他们的主要理由。这种新的分类的优点说明了不同类型的项目,包括那些(尚未)有MISRA符合其目标。

英文摘要:

MISRA C is the most authoritative language subset for the C programming language that is a de facto standard in several industry sectors where safety and security are of paramount importance. While MISRA C is currently encoded in 175 guidelines (coding rules and directives), it does not coincide with them: proper adoption of MISRA C requires embracing its preventive approach (as opposed to the "bug finding" approach) and a documented development process where justifiable non-compliances are authorized and recorded as deviations. MISRA C guidelines are classified along several axes in the official MISRA documents. In this paper, we add to these an orthogonal classification that associates guidelines with their main rationale. The advantages of this new classification are illustrated for different kinds of projects, including those not (yet) having MISRA compliance among their objectives.

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

↑