Coding guidelines for embedded applications

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
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.

Re: Coding guidelines for embedded applications
If you're writing a device driver that might end up in the kernel, use
C and follow the kernel coding standards at
http://www.kernel.org/doc/Documentation/CodingStyle

For safety-critical work, buy the relevant standards from MISRA at
http://www.misra.org.uk /
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
http://trs-new.jpl.nasa.gov/dspace/bitstream/2014/35179/1/93-0749.pdf
is useful, particularly the safety checklist.

Also useful is Michael Barr's "Firmware Code of Ethics" at
http://embeddedgurus.com/barr-code/2006/09/firmware-ethics /


Site Timeline