Skip to main content

IAR Embedded Workbench for RX 5.20

--rwpi_near

In this section:
Syntax

--rwpi_near

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). This option is equivalent to the option--rwpi in IAR Embedded Workbench for RX version 3.10 and older.

When this option is used, these limitations apply:

  • Constant pointers to __sbrel objects cannot be used

  • __sbrel objects cannot be declared const

  • The position-independent RAM memory is effectively limited to 64 Kbytes for increased efficiency.

See also

RWPI and __RWPI__.

Caution

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