C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
MISRA C++ Posted by Lundin on 5 May 2008 at 4:22 AM
MISRA has now set a release date for MISRA C++.

For those who don't know about MISRA, it is an organization created by the automotive industry in the UK. Any serious C programmer working with systems that safety-critical and/or have real-time performance, or anyone who simply want to enforce that the code written by their company is somewhat sane, bug free and portable has been using the industry standard MISRA C for over ten years now. It was created for the automotive industry for safety-critical applications, but the rules it contains is applicable to any C program. And now there will also be a MISRA standard supporting C++.

If you work as a professional programmer who knows the standards well, and want to enforce stricter programming rules for your company, MISRA C and MISRA C++ are definitely worth checking out. One can buy the MISRA C pdf from their site for around $20, so I assume the C++ one will end up in the same price range.
Report
Re: MISRA C++ Posted by IDK on 20 May 2008 at 11:19 AM
Hmm, I'm thinking of if there is some kind of Open Source alternative
programming standard.

And then I must ask what does such a standard include?

Would something like the BSD coding style (http://www.freebsd.org/cgi/man.cgi?query=style&sektion=9) suffice?
Or does the standard include more specific things like how a project
should advance and how much time you should spend on testing etc...
Report
Re: MISRA C++ Posted by Lundin on 20 May 2008 at 1:39 PM
: Hmm, I'm thinking of if there is some kind of Open Source alternative
: programming standard.
:
: And then I must ask what does such a standard include?
:
: Would something like the BSD coding style
: (http://www.freebsd.org/cgi/man.cgi?query=style&sektion=9) suffice?
: Or does the standard include more specific things like how a project
: should advance and how much time you should spend on testing etc...


MISRA is not a style guide, it is rules for coding. It requires that you have a style guide however, but doesn't mention how it should be formatted.

A free alternative to MISRA is CERT, for both C and C++, but it is much vauger and less strict than MISRA and doesn't have a wide acceptance, nor was it made for safety-critical applications.

http://www.cert.org/secure-coding/

Anyway, £12 for MISRA is quite cheap.
Report
Re: MISRA C++ Posted by IDK on 21 May 2008 at 11:29 AM
Ah, ok now I get it.

Thank you.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.