Thought Leadership

Article about MISRA C

My latest article on embedded.com has been published here. I am looking at the application of MISRA C to develop better, safer code. Here are the details:

MISRA C: Write safer, clearer C code

Embedded developers often bemoan the fact that no programming language is ideal for their particular needs. In a way, this situation is unsurprising, because, although a great many developers are working on embedded applications, they are still only quite a small subset of the world’s programming community. Nevertheless, some languages have been developed with embedded in mind. Notable examples are PL/M, Forth and Ada, all of which have been widely used, but never universally accepted. Other languages, like Rust are gaining support, but are not yet mainstream. The compromise, that has been adopted almost universally, is C. How can that compromise be made to work most effectively?

I have long felt that MISRA C is a great way to constrain developers’ use of C resulting in safer code, which has application way beyond its origins in automotive systems. I served on the MISRA C Working Group for a number of years.

Colin Walls

I have over thirty years experience in the electronics industry, largely dedicated to embedded software. A frequent presenter at conferences and seminars and author of numerous technical articles and two books on embedded software, I am a member of the marketing team of the Mentor Graphics Embedded Systems Division, and am based in the UK. Away from work, I have a wide range of interests including photography and trying to point my two daughters in the right direction in life. Learn more about Colin, including his go-to karaoke song and the best parts of being British: http://go.mentor.com/3_acv

More from this author

Leave a Reply

This article first appeared on the Siemens Digital Industries Software blog at https://blogs.sw.siemens.com/embedded-software/2021/03/25/article-about-misra-c/