logo

MISRA-C


Summary

MISRA C is a set of software development guidelines for the C programming language developed by The MISRA Consortium. It is the most widely used set of coding guidelines for C around the world. MISRA provides best practice guidelines for the safe and secure application of both embedded control systems and standalone software. The version used in this section is MISRA-C:2004.


Definitions

DefinitionRequirements
MISRAC-1_1. All code shall conform to legal compliance
MISRAC-1_4. The compiler/linker shall be checked
MISRAC-2_1. Assembly language shall be encapsulated and isolated
MISRAC-2_4. Sections of code should not be “commented out”
MISRAC-3_2. Character set and corresponding encoding shall be documented
MISRAC-3_6. All libraries used in production code shall be written
MISRAC-5_5. No object or function identifier with static storage duration should be reused
MISRAC-5_7. No identifier name should be reused
MISRAC-8_8. An external object or function shall be declared in one and only one file
MISRAC-15_0. The MISRA C switch syntax shall be used
MISRAC-20_2. Names of standard library macros, objects and functions shall not be reused

Last updated

2023/09/18