27-04-2006, 04:51 PM
C statements and assembler statements should not co-exist in a function unless the assembler is encapsulated in a macro.
The following example violates this rule.
The following example violates this rule.
Code:
static void foo ( void )
{
asm { \"CLI\" };
foobar();
asm { \"SEI\" };
}
Posted by and on behalf of the MISRA C Working Group