MISRA and AUTOSAR Compliance
When you generate C/C++ code from MATLAB® code, you can configure certain code generation parameters to increase the likelihood of generating code that complies with the MISRA C:2012, MISRA C:2023, MISRA C++:2008, and AUTOSAR C++14 guidelines.
Functions
coder.setupMISRAConfig | Configure parameters to improve generated code compliance with MISRA and AUTOSAR guidelines |
Topics
- Generate C/C++ Code with Improved MISRA and AUTOSAR Compliance
Configure code generation parameters to increase the MISRA and AUTOSAR compliance of the generated C/C++ code.
- MISRA C:2012 Coding Directives and Rules Supported for Code Generation
The generated C code is compliant with these mandatory or required coding rules in the MISRA C:2012 guidelines.
- MISRA C:2023 Coding Directives and Rules Supported for Code Generation
The generated C code is compliant with these mandatory or required coding rules in the MISRA C:2023 guidelines.
- MISRA C++:2008 and AUTOSAR C++14 Coding Rules Supported for Code Generation
The generated C++ code is compliant with these required coding rules in the MISRA C++:2008 and AUTOSAR C++14 guidelines.