MISRA C:2021 Dir-4.3 Assembly language shall be encapsulated and isolated
Misra-C 2021에서 에셈블리와 C코드가 함께 있을 때 Dir-4.3 에러가 발생한다. 4.3 에러에 대한 내용을 함께 알아보자. MISRA-C 2021. Dir 4.3 when a static function contains only variable declaration, asm and return statementThis function contains a mix of in-line assembler statements and C statements. 코드 라인에 C 코드와 어셈블리어가 함께 포함되어 있을 때 발생한다. HELIX-QAC.QAC 3006 In-line assembler code has been encountered in a context where it is interspersed with C statements. Message 3006 will be generated on any function which is defined with a mixture of assembler code and executable C statements, unless the assembler code is encapsulated in a macro. 예시) * 정상적인 구문 *…