The Power of Ten – Rules for Developing Safety Critical Code

时间:2023-03-24 08:20:47
【文件属性】:

文件名称:The Power of Ten – Rules for Developing Safety Critical Code

文件大小:52KB

文件格式:PDF

更新时间:2023-03-24 08:20:47

Safety Critical

The first two rules guarantee the creation of a clear and transparent control flow structure that is easier to build, test, and analyze. The absence of dynamic memory allocation, stipulated by the third rule, eliminates a class of problems related to the allocation and freeing of memory, the use of stray pointers, etc. The next few rules (4 to 7) are fairly broadly accepted as standards for good coding style. Some benefits of other coding styles that have been advanced for safety critical systems, e.g., the discipline of “design by contract” can partly be found in rules 5 to 7.


网友评论