Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 14.3
#1
Hi,
I am running into this rule whenever using in-line assemebly in my blackfin project.

i.e

asm ("ssync;");
or
asm("nop;");

generated the error in ibm logiscope
"A null statements shall only occur on a line by itself, and shall not have any other text on the same line"

I assume this comes from having the two ";" characters on the one line.
But how can i overcome this?

Matthew
<t></t>
Reply
#2
I don't know ibm logiscope, but if you replace any asm call with "(void)0" instead of "" for checking, the message might go away.
Defining a global exception may also be a solution for you.

HTH,

Johan
<r>Johan Bezem<br/>
Email: <EMAIL email="[email protected]">[email protected]</EMAIL><br/>
Tel: +49 172 5463210<br/>
Web: <URL url="http://www.bezem.de/">http://www.bezem.de/</URL></r>
Reply
#3
sorry I'm not entirely sure what you mean

so to replace:
asm ("ssync;");

i would use
(void)0

just to check that it will get rid of the error?

How do a define a global exception?

thanks again,

Matt
<t></t>
Reply
#4
It is not clear that there is any technical issue with the MISRA C Guidelines relating to this question.
Posted by and on behalf of the MISRA C Working Group
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)