Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Proposal: Rule 0-1-3 exception
#1
Dear MISRA team,

we have certain variables which are required by our boot loader (a separate binary) but are not used in the main program itself.
In my book, this is not a violation of 0-1-3, because clearly those variables have a usage, albeit one that static analysis cannot prove.
Therefore i would like to propose the following addendum to rule 0-1-3:

Exception: a variable which is required by an external binary program only (e.g. an embedded systems boot loader) is not considered a violation of this rule.
<t></t>
Reply
#2
I can understand the issue here, but I'm not sure how an exception would help as a tool would not know when it applied.

Seems like you have a good justification for a deviation - the use-case fits nicely with the concept of "Permits" within MISRA Compliance, meaning most of the work required can be re-used across projects.
<t></t>
Reply
#3
mishak Wrote:I can understand the issue here, but I'm not sure how an exception would help as a tool would not know when it applied.

Seems like you have a good justification for a deviation - the use-case fits nicely with the concept of "Permits" within MISRA Compliance, meaning most of the work required can be re-used across projects.
Yeah, maybe the use case is even common enough so that a MISRA C++:2008 permits document can be started like they did for C:2004 (https://misra.org.uk/forum/viewtopic.php?f=241&t=1562).
<t></t>
Reply
#4
We'd agree with mishak, the case you describe certainly justifies a deviation, but isn't common enough or sufficiently machine checkable to justify an exception
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)