Skip to main content

IAR Embedded Workbench for RISC-V 3.40

‑‑no_static_destruction

In this section:
Syntax

‑‑no_static_destruction

Description

Normally, the compiler emits code to destroy C++ static variables that require destruction at program exit. Sometimes, such destruction is not needed.

Use this option to suppress the emission of such code.

See also

Setting up the atexit limit.

Caution

To set this option, use Project>Options>C/C++ Compiler>Extra Options.