About Appendix H of MISRA C: 2012 - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: MISRA C:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21) +---- Forum: 8.1 A standard C environment (https://forum.misra.org.uk/forumdisplay.php?fid=156) +---- Thread: About Appendix H of MISRA C: 2012 (/showthread.php?tid=1511) |
About Appendix H of MISRA C: 2012 - Takuya Nishimura - 15-10-2019 Hello all, I have some questions about Appendix H of MISRA C: 2012. Appendix H states that C90 id and C99 id are based on C90 and C99 standard. Therefore, I thought there was only one C90 and C99 standard, but the reference lists multiple C90 and C99 standards. Which standard is used to create the table in Appendix H? Also, C90 and C99 Standard are not assigned numbers such as C90 id and C99 id. How were the C90 id and C99 id numbering decided? Re: About Appendix H of MISRA C: 2012 - dg1980 - 16-10-2019 Hi, they are numbered in the exact order of their appearance in the annex of the respective standard. Example MISRA Rule 11.11 C90 (ISO 9899:1990) Id 27 C99 (ISO 9899:1999) Id 23 Text: A pointer is used to call a function whose type is not compatible with the pointed-to type Obviously, you need access to both ISO documents in order to be able to retrace that. Re: About Appendix H of MISRA C: 2012 - misra-c - 21-10-2019 Unfortunately, the entries in C90 Annex G and C99 Annex J are un-numbered bullet lists, which makes cross-referencing difficult. This issue is covered in MISRA C:2012 Para 6.10.1, which mentions that the numbering in Annexes is based on the the original C90 and C99 standards, without without any technical corrigenda or amendments being applied. This is because there is no officially-available revision of the C99 Standards which incorporates its Technical Corrigenda. The MISRA ID numbers are generated by sequentially numbering each of the (un-numbered) bullet points. In C90, some behaviours are mentioned in the text, but not included in Annex G – these are shown with an asterisk in MISRA C’s appendices. The next version of MISRA C:2012 will include a clarification in Appendx H: For example in the C99 Id bullet point the folowing sentence will be added. "The number starts from the beginning of section J.2 and does not include subsequent Technical Corrigenda." Re: About Appendix H of MISRA C: 2012 - Takuya Nishimura - 30-10-2019 Thank you for your quick reply, I could understand the rule. >> The next version of MISRA C:2012 will include a clarification in Appendx H: For example in the C99 Id bullet point the folowing sentence will be added. I am very interested in update of the next version. When is the next version update scheduled? If possible, can you tell me the main content of the update? I would appreciate it if you could tell me about future updates. Re: About Appendix H of MISRA C: 2012 - Andrew Banks - 04-03-2020 As per the Announcement, MISRA C:2012 Amendment 2 has been published, which brings C11/C18 into scope. This can be available from the MISRA website |