--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
__sbrelobjects cannot be used__sbrelobjects cannot be declaredconstThe position-independent RAM memory is effectively limited to 64 Kbytes for increased efficiency.
See also
Caution
Project>Options>General Options>Target>Read/write data