Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about Dir 4.3 when a static function contains only variable declaration, asm and return statement
#9
The whole point of the Directive is to encapsulate the assembly language... therefore any additional code (including a +1) is no longer encapsulating the assembler.

While this may be considered a trivial matter, any other position results in salami-slicing - if X is OK what about X+Y - and makes diagnosis less decidable.

You may, of course, choose to deviate, with the support of your assessor
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)