![]() |
![]() |
1003 | ![]() |
||||
![]() | |||||||
| Language extensions | REFERENCE - ISO:C90-6.8 Preprocessing Directives - Syntax | ||||||
QAC will ignore any code which is bounded by the two preprocessing directives #asm and #endasm provided that the language extension option "-ex asm" is enabled. Message 1003 will be generated on each directive. For example:
/*PRQA S 2017,3408 ++*/
extern void foo(void)
{
#asm /* Message 1003 */
MOV DX, AX
XOR AX, 0x7F
#endasm /* Message 1003 */
}
MISRA C:2012 Rules applicable to message 1003:
| Dir-4.2 (Advisory) | All usage of assembly language should be documented |
| Rule-1.2 (Advisory) | Language extensions should not be used |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |