MISRA C++

MISRA has now set a [link=http://www.misra.org.uk/forum/viewtopic.php?f=181&t=795&sid=805a3ba29e81514e626fff761eb94fd7]release date[/link] 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 [link=http://www.misra-c2.com/intro.htm]MISRA C[/link] 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.

Comments

  • 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...
  • : 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,
  • Ah, ok now I get it.

    Thank you.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion