Page 1 of 1

MISRA AC AGC vs. MISRA-C:2012-Appendix-E

Posted: Wed Dec 13, 2017 12:34 pm
by msteding
Hello community,

recently, I bought the publication "MISRA AC AGC - Guidelines for the application of MISRA-C:2004 in the context of automatic code generation".
I bought this document because my code analyzer tools POLYSPACE from MATHWORKS support the analysis based on either MISRA-C:2004, MISRA-C:2012 or MISRA AC AC. As the latter one is based on MISRA-C:2004 I wonder, whether the standard MISRA-C:2012 with the exceptions resp. modifications described in Appendix E would be the 'better' choice?

Thank you for any response and
Best Regards.
Manfred

Re: MISRA AC AGC vs. MISRA-C:2012-Appendix-E

Posted: Tue Jan 30, 2018 12:49 pm
by misra-c
MISRA AC AGC (published in 2007) provides guidance for auto-generated code, in the context of MISRA C:2004

For MISRA C:2012, this additional guidance is provided within the Guidelines by Appendix E.

The decision as to which version of MISRA C to use (2004+AGC or 2012) depends on a number of factors, particularly the tool-chain and the existing code-base. For new projects, it is generally “better” to adopt MISRA C:2012.