Coding guidelines for embedded applications

Nov 27, 2010 1 Replies

Could you point some well known coding guidelines used for embedded applications ? I will be using C/C++ on Linux for a real-time embedded application.


If you're writing a device driver that might end up in the kernel, use C and follow the kernel coding standards at

formatting link

For safety-critical work, buy the relevant standards from MISRA at

formatting link
either "Guidelines for the Use of the C Language in Critical Systems," October 2004 or "Guidelines for the Use of the C++ Language in Critical Systems," June 2008.

"Targeting Safety-Related Errors During Software Requirements Analysis" from

formatting link
is useful, particularly the safety checklist.

Also useful is Michael Barr's "Firmware Code of Ethics" at

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required