<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[MISRA Discussion Forums - General Questions]]></title>
		<link>https://forum.misra.org.uk/</link>
		<description><![CDATA[MISRA Discussion Forums - https://forum.misra.org.uk]]></description>
		<pubDate>Thu, 05 Nov 2026 12:57:00 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Compiler - minimal test suite]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1752</link>
			<pubDate>Thu, 04 Sep 2025 12:16:54 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6679">delirium5223</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1752</guid>
			<description><![CDATA[It would be nice if MISRA specified a mandatory C/C++ compiler <span style="font-weight: bold;" class="mycode_b">minimal </span>test-suite package to be run against production compiler.<br />
<br />
If your compiler is claimed to be C99 compliant, then you shouldn't be worried about not passing.<br />
<br />
We have seen so many buggy compilers (e.g. I remember Microchip miscompiling u32 on 8bit code that ran fine in IAR on 32bit)<br />
<br />
If we cannot trust the compiler then we can argue about MISRA rules all day, the hidden bugs will remain to be found either by testing or by end user.<br />
<br />
It will never be perfect nor exhaustive, but we could raise the minimum bar at least.]]></description>
			<content:encoded><![CDATA[It would be nice if MISRA specified a mandatory C/C++ compiler <span style="font-weight: bold;" class="mycode_b">minimal </span>test-suite package to be run against production compiler.<br />
<br />
If your compiler is claimed to be C99 compliant, then you shouldn't be worried about not passing.<br />
<br />
We have seen so many buggy compilers (e.g. I remember Microchip miscompiling u32 on 8bit code that ran fine in IAR on 32bit)<br />
<br />
If we cannot trust the compiler then we can argue about MISRA rules all day, the hidden bugs will remain to be found either by testing or by end user.<br />
<br />
It will never be perfect nor exhaustive, but we could raise the minimum bar at least.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Gaps in enums]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1750</link>
			<pubDate>Thu, 04 Sep 2025 11:06:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6679">delirium5223</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1750</guid>
			<description><![CDATA[Can we have a new rule that says <br />
<blockquote class="mycode_quote"><cite>Quote:</cite>  if enum is used as an iterator type then there shall not be gaps in enum values.</blockquote>
<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>typedef enum<br />
{<br />
  PIN_A = 1, <br />
    //missing 2<br />
  PIN_B = 3,<br />
  PIN_C = 4,<br />
  PIN_MAX,<br />
} tPin;<br />
 <br />
for(tPin i = PIN_A ; i &lt; PIN_MAX; i++) <br />
{<br />
// i reaching 2 is unintended/refactoring/human error<br />
}</code></div></div><br />
Surely we would want to know/acknowledge that enum has a gap if we plan to iterate over it. <br />
(regardless where the 'for' loop starts/end)<br />
    <br />
It would make a good higher level/abstraction rule.<br />
  <br />
Or at least make it advisory.]]></description>
			<content:encoded><![CDATA[Can we have a new rule that says <br />
<blockquote class="mycode_quote"><cite>Quote:</cite>  if enum is used as an iterator type then there shall not be gaps in enum values.</blockquote>
<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>typedef enum<br />
{<br />
  PIN_A = 1, <br />
    //missing 2<br />
  PIN_B = 3,<br />
  PIN_C = 4,<br />
  PIN_MAX,<br />
} tPin;<br />
 <br />
for(tPin i = PIN_A ; i &lt; PIN_MAX; i++) <br />
{<br />
// i reaching 2 is unintended/refactoring/human error<br />
}</code></div></div><br />
Surely we would want to know/acknowledge that enum has a gap if we plan to iterate over it. <br />
(regardless where the 'for' loop starts/end)<br />
    <br />
It would make a good higher level/abstraction rule.<br />
  <br />
Or at least make it advisory.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Roadmap to c23 support]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1728</link>
			<pubDate>Fri, 28 Feb 2025 15:23:53 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5734">ACHart</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1728</guid>
			<description><![CDATA[Are there any formal plans/estimates/roadmaps for adding c23 support to MISRA?<br />
If work for this has already begun, how is it going?  <img src="https://forum.misra.org.uk/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />]]></description>
			<content:encoded><![CDATA[Are there any formal plans/estimates/roadmaps for adding c23 support to MISRA?<br />
If work for this has already begun, how is it going?  <img src="https://forum.misra.org.uk/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[MISRA 2023 Test Suite]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1713</link>
			<pubDate>Mon, 14 Oct 2024 13:27:28 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=1104">grigdon</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1713</guid>
			<description><![CDATA[Hi,<br />
<br />
Is there a MISRA 2023 test suite? I'm looking for C code with violations to be used for static analysis tool validation.<br />
<br />
Thanks<br />
<br />
Gerry]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
Is there a MISRA 2023 test suite? I'm looking for C code with violations to be used for static analysis tool validation.<br />
<br />
Thanks<br />
<br />
Gerry]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[About MISRA-C 2023 Permit]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1704</link>
			<pubDate>Wed, 18 Sep 2024 11:53:17 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6482">nghia do</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1704</guid>
			<description><![CDATA[<span style="font-family: 'Open Sans', sans-serif;" class="mycode_font">Hi,</span><br />
<br />
<span style="font-family: 'Open Sans', sans-serif;" class="mycode_font">I would like to know when MISRA C:2023 permit is published. If no, could I understand there is no new deviation rule between MISRA-C 2012 and MISRA-C 2023</span>]]></description>
			<content:encoded><![CDATA[<span style="font-family: 'Open Sans', sans-serif;" class="mycode_font">Hi,</span><br />
<br />
<span style="font-family: 'Open Sans', sans-serif;" class="mycode_font">I would like to know when MISRA C:2023 permit is published. If no, could I understand there is no new deviation rule between MISRA-C 2012 and MISRA-C 2023</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[C, Assembler and MISRA]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1661</link>
			<pubDate>Wed, 25 Oct 2023 08:56:32 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6262">Errol</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1661</guid>
			<description><![CDATA[Understanding that assembler code has to be documented and isolated (Directives 4.2 &amp; 4.3 ), are there any limits to how much assembly code there is in a project? Could you have have a project that is mostly assembly with only C wrappers and yet still claim MISRA compliance?]]></description>
			<content:encoded><![CDATA[Understanding that assembler code has to be documented and isolated (Directives 4.2 &amp; 4.3 ), are there any limits to how much assembly code there is in a project? Could you have have a project that is mostly assembly with only C wrappers and yet still claim MISRA compliance?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[MISRA Compliance Matrix]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1649</link>
			<pubDate>Thu, 08 Jun 2023 16:57:43 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5413">vartika.tailor</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1649</guid>
			<description><![CDATA[Hi,<br />
<br />
Please could you let me know whether I can download a template MISRA 2012 compliance matrix document and the link to the document? <br />
<br />
Kind regards,<br />
Vartika]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
Please could you let me know whether I can download a template MISRA 2012 compliance matrix document and the link to the document? <br />
<br />
Kind regards,<br />
Vartika]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Suggestions for a MISRA-C-2012-compliant compression library?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1643</link>
			<pubDate>Tue, 07 Mar 2023 02:41:35 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5977">philCryo</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1643</guid>
			<description><![CDATA[Hi all,<br />
<br />
Not sure which forum in which to post this.  Any suggestions for a MISRA-C-2012-compliant compression library?  Everything I'm checking has oodles of "Required" rule violations.]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
Not sure which forum in which to post this.  Any suggestions for a MISRA-C-2012-compliant compression library?  Everything I'm checking has oodles of "Required" rule violations.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[MISRA Unspecified Behavior - AMD 2 - Corrections]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1625</link>
			<pubDate>Mon, 27 Jun 2022 10:56:36 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5433">maff_707</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1625</guid>
			<description><![CDATA[Hi,<br />
<br />
I sent you a question before for TC3 issue - indeed I noticed that the C standard has  TC3 where there are some added things, this is resolved now, but I have one more issue I didn't find an fix for:<br />
<br />
Mainly, in the appendix H.2. Critical Unspecified behavior, there seems to be a mistake in rules mentioned for the unspecified behaviors.<br />
Mainly for C99, unspecified behaviors with ID 41 and 42, have Rule 21.9 - but they obviously refer to dynamic allocation, which should be Rule 22.1.<br />
<br />
Further more, IDs 43 and 44, which should refer to quick sort and binary search, have Rule 21.10 (for time and date functions) but it should be Rule 21.9.<br />
<br />
Finally, IDs 45 and 56, which should be covered by rule 21.10 (no time and date), do not have any reference to rules which avoids the unspecified behavior.<br />
<br />
Please see attachment image for more details.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.misra.org.uk/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=21" target="_blank" title="">MISRA_AMD2_Issue.png</a> (Size: 83.83 KB / Downloads: 17)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I sent you a question before for TC3 issue - indeed I noticed that the C standard has  TC3 where there are some added things, this is resolved now, but I have one more issue I didn't find an fix for:<br />
<br />
Mainly, in the appendix H.2. Critical Unspecified behavior, there seems to be a mistake in rules mentioned for the unspecified behaviors.<br />
Mainly for C99, unspecified behaviors with ID 41 and 42, have Rule 21.9 - but they obviously refer to dynamic allocation, which should be Rule 22.1.<br />
<br />
Further more, IDs 43 and 44, which should refer to quick sort and binary search, have Rule 21.10 (for time and date functions) but it should be Rule 21.9.<br />
<br />
Finally, IDs 45 and 56, which should be covered by rule 21.10 (no time and date), do not have any reference to rules which avoids the unspecified behavior.<br />
<br />
Please see attachment image for more details.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://forum.misra.org.uk/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=21" target="_blank" title="">MISRA_AMD2_Issue.png</a> (Size: 83.83 KB / Downloads: 17)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Naming Conventions in MISRA C 2012]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1623</link>
			<pubDate>Tue, 21 Jun 2022 12:21:02 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5928">gpotts63</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1623</guid>
			<description><![CDATA[What is the meaning of different naming conventions with rules?<br />
For example, “Rule 2.1: A project shall not contains unreachable code” versus “Rule 5-0-7: There shall be no explicit floating-integral conversions of a cvalue expression”.<br />
It seems some companies that use MISRA support only the decimal point rules, while others support the dashed rules.<br />
What is the difference, and/or why is there a split?]]></description>
			<content:encoded><![CDATA[What is the meaning of different naming conventions with rules?<br />
For example, “Rule 2.1: A project shall not contains unreachable code” versus “Rule 5-0-7: There shall be no explicit floating-integral conversions of a cvalue expression”.<br />
It seems some companies that use MISRA support only the decimal point rules, while others support the dashed rules.<br />
What is the difference, and/or why is there a split?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[CWE Coverage by MISRA]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1592</link>
			<pubDate>Tue, 30 Nov 2021 12:23:23 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5767">susanne.goldammer</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1592</guid>
			<description><![CDATA[Hi all,<br />
<br />
i am currently searching for a CWE coverage list, means which CWEs listed under <a href="https://cwe.mitre.org/data/definitions/1000.html" target="_blank" rel="noopener" class="mycode_url">https://cwe.mitre.org/data/definitions/1000.html</a> (Research concepts, means all) are actually covered by MISRA C? Is there such a list available?  <br />
<br />
Thank you in advance.<br />
<br />
Best regards<br />
Susanne]]></description>
			<content:encoded><![CDATA[Hi all,<br />
<br />
i am currently searching for a CWE coverage list, means which CWEs listed under <a href="https://cwe.mitre.org/data/definitions/1000.html" target="_blank" rel="noopener" class="mycode_url">https://cwe.mitre.org/data/definitions/1000.html</a> (Research concepts, means all) are actually covered by MISRA C? Is there such a list available?  <br />
<br />
Thank you in advance.<br />
<br />
Best regards<br />
Susanne]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[choosing C compiler]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1567</link>
			<pubDate>Thu, 04 Mar 2021 02:11:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5601">scb1993</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1567</guid>
			<description><![CDATA[Hello Sir,<br />
<br />
I was going through MISRA C 2012 rules, Does MISRA says any guidelines to choose compiler for C as there are many compilers available in the market. <br />
<br />
Regards<br />
Subhra]]></description>
			<content:encoded><![CDATA[Hello Sir,<br />
<br />
I was going through MISRA C 2012 rules, Does MISRA says any guidelines to choose compiler for C as there are many compilers available in the market. <br />
<br />
Regards<br />
Subhra]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Misra Rules for cppcheck]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1551</link>
			<pubDate>Wed, 04 Nov 2020 05:58:13 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5530">julred</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1551</guid>
			<description><![CDATA[Hi everyone,<br />
<br />
I'm using the application cppcheck for my existing development. Now I'd like to add the functionality of checking my sources against Misra rules.<br />
Therefor I need the Misra Rules in a .txt file format. Where can I get it?<br />
<br />
BR]]></description>
			<content:encoded><![CDATA[Hi everyone,<br />
<br />
I'm using the application cppcheck for my existing development. Now I'd like to add the functionality of checking my sources against Misra rules.<br />
Therefor I need the Misra Rules in a .txt file format. Where can I get it?<br />
<br />
BR]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[When will MISRA C:2012 permits be available?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1531</link>
			<pubDate>Tue, 03 Mar 2020 14:18:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=4608">Qiong</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1531</guid>
			<description><![CDATA[When will MISRA C:2012 permits be available? MISRA Compliance:2020 section 4.3 (page 13) mentioned "Public deviation permits, published by MISRA". We would like to see the permits list for MISRA C:2012 not for MISRA C:2004.]]></description>
			<content:encoded><![CDATA[When will MISRA C:2012 permits be available? MISRA Compliance:2020 section 4.3 (page 13) mentioned "Public deviation permits, published by MISRA". We would like to see the permits list for MISRA C:2012 not for MISRA C:2004.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Any on-line MISRA reference material with examples?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1507</link>
			<pubDate>Mon, 09 Sep 2019 15:35:53 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5323">sw_test</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1507</guid>
			<description><![CDATA[Hi,<br />
<br />
I was wondering if there is any on-line reference material with examples of different MISRA compliance rules and how to fix the issues properly?  or is it all only available through the MISRA webstore? <a href="https://www.misra.org.uk/Buyonline/tabid/58/Default.aspx" target="_blank" rel="noopener" class="mycode_url">https://www.misra.org.uk/Buyonline/tabid...fault.aspx</a>  <br />
<br />
I'm looking for a way to link to examples for the different MISRA rules but not really seeing something that is similar to seeing issues with CWE, like: <a href="http://cwe.mitre.org/data/definitions/825.html" target="_blank" rel="noopener" class="mycode_url">http://cwe.mitre.org/data/definitions/825.html</a><br />
<br />
Is there anything similar for the MISRA compliance side of things?<br />
<br />
Thanks.]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
I was wondering if there is any on-line reference material with examples of different MISRA compliance rules and how to fix the issues properly?  or is it all only available through the MISRA webstore? <a href="https://www.misra.org.uk/Buyonline/tabid/58/Default.aspx" target="_blank" rel="noopener" class="mycode_url">https://www.misra.org.uk/Buyonline/tabid...fault.aspx</a>  <br />
<br />
I'm looking for a way to link to examples for the different MISRA rules but not really seeing something that is similar to seeing issues with CWE, like: <a href="http://cwe.mitre.org/data/definitions/825.html" target="_blank" rel="noopener" class="mycode_url">http://cwe.mitre.org/data/definitions/825.html</a><br />
<br />
Is there anything similar for the MISRA compliance side of things?<br />
<br />
Thanks.]]></content:encoded>
		</item>
	</channel>
</rss>