Conformità MISRA e AUTOSAR
Quando si genera codice C/C++ dal codice MATLAB®, è possibile configurare determinati parametri di generazione di codice per aumentare la probabilità che il codice generato sia conforme alle linee guida MISRA C:2012, MISRA C:2023, MISRA C++:2008 e AUTOSAR C++14.
Funzioni
coder.setupMISRAConfig | Configure parameters to improve generated code compliance with MISRA and AUTOSAR guidelines |
Argomenti
- 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.