Page 1 of 1

Rule 14.3

Posted: Wed Mar 17, 2010 3:50 pm
by mshearer123
I am running into this rule whenever using in-line assemebly in my blackfin project.


asm ("ssync;");

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?


Re: Rule 14.3

Posted: Thu Mar 18, 2010 9:30 am
by jbezem
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.



Re: Rule 14.3

Posted: Thu Mar 18, 2010 10:30 am
by mshearer123
sorry I'm not entirely sure what you mean

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

i would use

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

How do a define a global exception?

thanks again,


Re: Rule 14.3

Posted: Thu May 13, 2010 10:50 am
by misra-c
It is not clear that there is any technical issue with the MISRA C Guidelines relating to this question.