Skip to main content

IAR Embedded Workbench for RX 5.20

--rwpi

In this section:
Syntax

--rwpi

Description

Use this option to enable position-independent writable data. A base register will be locked to hold the base address of the position-independent block. The default memory attribute for non-constant objects will be __sbrel (position-independent).

When this option is used, these limitations apply:

  • Constant pointers to __sbrel objects cannot be used

  • __sbrel objects cannot be declared const.

See also

RWPI and __RWPI__.

Caution

Project>Options>General Options>Target>Read/write data