C语言课本上的例子缩写fig,安全第一的C语言编程规范(国外英文资料).doc

安全第一的C语言编程规范(国外英文资料)

安全第一的C语言编程规范(国外英文资料)

"Safety first" C language programming specification

Authors: Chen Mengmeng, Shao Beibei, Tsinghua University

Source: microcontroller and embedded systems applications, 2006-4-6, 17:44:18

Editor's note: C language is the main tool for embedded application development, but the C language is not specifically for the design of embedded system, embedded system is much more general computer systems have more stringent requirements on software security. In 1998, MISRA pointed out that there were 127 places where C seemed acceptable, but there were security risks. In 2004, MISRA's limit on C increased to 141.

The application of embedded system engineers use computer experts created by the C language, the application of embedded system has been developing rapidly, and MISRAC is the application of embedded system engineers make C language for embedded applications with. Nowadays, MISRA C has been accepted by more and more enterprises, and becomes the C language standard for embedded systems, especially for embedded systems with high security requirements. The software should conform to the MISRA standard.

From this period begin, this print will be divided into 6 period, learn with reader jointly MISRAC.

First, the C programming specification for "safety first", a brief overview of MISRAC is given.

Second, "the pitfalls of data typing" introduces the specification of data definitions and methods of operation, focusing on the problem of implicit data type conversions.

Lecture 3: "safety norms for pointers, structures and unions" to analyze how to apply pointers, structures and unions safely and efficiently.

Fourth, "prevent the uncontrolled expression". Analyze the bad usage habits of expressions, functions, declarations and definitions in MISRAC, so as to minimize all kinds of potential errors.

Fifth, "accurate program flow control" describes the standard practices for controlling expressions and program flow control in the C language.

Sixth, "build a secu

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值