Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑runtime_checking

In this section:
Syntax
‑‑runtime_checking param ,param, ...
Parameters

param is one of:

signed_overflow | unsigned_overflow

Checks for signed or unsigned overflow in integer operations.

integer_conversion | implicit_integer_conversion

Checks for implicit or explicit integer conversions resulting in a change of value.

div_by_zero

Checks for division by zero.

signed_shift | unsigned_shift

Checks for bit loss or implementation-dependent results when shifting.

switch

Checks for unhandled cases in switch statements.

bounds

Checks for accesses outside the bounds of arrays and other objects.

bounds_no_checks

Tracks pointer bounds, but performs no checks. See also #pragma disable_check = bounds.

For use with

The compiler

Description

Use this compiler option to enable runtime error checking.

See also

Introduction to runtime error checking.

Caution

To set related options, choose:

Project>Options>Runtime Checking