Skip to main content

IAR Embedded Workbench for RX 5.20

MISRAC++2023-10.4.1

In this section:
Synopsis

(Required) The asm declaration shall not be used

Enabled by default

Yes

Severity/Certainty

Medium/High

mediumhigh.png
Full description

Any use of assembly language introduce implementation defined behaviour.

Coding standards

This check does not correspond to any coding standard rules.

Code examples

The following code example fails the check and will give a warning:

void example() {
  asm("");
}

The following code example passes the check and will not give a warning about this issue:

void example() {
  // no asm
}