米斯拉标准的嵌入式软件 [英] Misra standard for embedded software

查看:189
本文介绍了米斯拉标准的嵌入式软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个要求,使大量code MISRA标准。

第一个问题:有人可以给出一个估算传递良好的书面code基于经验的嵌入式系统。据我所知,写得好的定义不清,模糊,所以我要求生估计。

第二个问题:为工具,可以自定义(即允许燮preSS具体的警告)的任何建议,并自动生成环境
使用(即命令行界面)
任何其他有用的建议,可以完成这个任务有帮助。

谢谢伊利亚。

Hi I have a requirement to make a large amount of code MISRA compliant.
First question: Can somebody to give an estimation for passing well written code for embedded system based on experience. I understand that "well written" is poorly defined and vague so i ask for raw estimation.
Second question: Any recommendation for tool that can be customizable (i.e allowing suppress specific warnings) and used in automatic build environment (i.e command line interface)
Any other useful suggestions that can help with this task.
Thanks Ilya.

推荐答案

我也强烈建议PC - 皮棉。如果你碰巧编译code与Visual Studio我推荐Riverblade插件视觉棉绒。如果你不能编译Visual Studio中的code,你仍然可以在命令行中,效果良好运行PC-皮棉。

I also highly recommend PC-Lint. If you happen to be compiling your code with Visual Studio I recommend a plug-in 'Visual Lint' from Riverblade. If you cannot compile the code in Visual Studio, you can still run PC-Lint from the command line to good effect.

一些嵌入式系统的编译器提供MISRA一致性测试编译器警告。我用IAR编译器ARM7 / ARM9开发。它提供了一个简单的编译器设置配置MISRA符合性检查单的权利。

Some embedded system compilers provide MISRA compliance testing as compiler warnings. I use the IAR compiler for Arm7/Arm9 development. It provides an easy to configure MISRA compliance checklist right in the compiler setup.

这是很难拿出经验来估计它会带你做出符合MISRA一些写得很好code时的规则。这在很大程度上取决于程序员的编码现有习惯以及如何密切,他们遵循MISRA规则摆在首位。

It is difficult to come up with a rule of thumb for estimating the time it would take you to make some well written code MISRA compliant. A lot depends on the existing coding habits of the programmers and how closely they follow the MISRA rules in the first place.

据粗略估计:结果
2 - 3天成为善于PC - 皮棉的使用结果。
在使现有code MISRA兼容的初始通:时间的10%至25%花在编写摆在首位的code结果
保持code MISRA兼容:5%到10%加入到code ++开发。这笔费用中有一半是改变你的codeRS的习惯遵循的做事'MISRA方式。另一半是code测试和检验的额外费用,以确保符合MISRA

Rough estimates:
2 - 3 days to become adept at PC-Lint usage.
Initial pass at making existing code MISRA compliant: 10 to 25 percent of the time spent writing the code in the first place.
Keeping code MISRA compliant: 5 to 10 percent added to code development. Half of this cost is changing the habits of your coders to follow the 'MISRA way' of doing things. The other half is the extra cost of code testing and inspection to ensure MISRA compliance.

这篇关于米斯拉标准的嵌入式软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆