Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑no_auto_ro_placement

In this section:
Syntax
‑‑no_auto_ro_placement
Description

On optimization levels Medium and High, the compiler places some variables in read-only memory to save RAM space. The affected variables:

  • are located in the default location

  • have static storage duration

  • have module or function scope

  • are read but never written

Use this option to disable that optimization.

Caution

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