MISRA.PRAGMA.ASMIncorrect assembler instruction. MISRA-C++ Rule 7-4-2 (required): Assembler instructions shall only be introduced using the asm declaration.RationaleThe asm declaration is available to all C++ implementations, allowing a consistent mechanism to be used. However, the parameters to asm are still implementation-defined. Examplevoid Delay_a ( void ) { asm ( "NOP" ); // Compliant } void Delay_b ( void ) { #pragma asm "NOP" // Non-compliant #pragma endasm } |