‑‑rwpi_near
In this section:
Syntax
‑‑rwpi_near
Description
Use this option to make the compiler generate code that uses the offset from the static base register (R9) to address-writable data. In 64-bit mode, this option has no effect.
When this option is used, these limitations apply
The object attribute
__ramfunccannot be used.Pointer constants cannot be initialized with the address of a writable variable. However, static writable variables can be initialized to writable addresses at runtime.
A maximum of 64 Kbytes of read/write memory can be addressed.
See also
‑‑no_rw_dynamic_init and Description of predefined preprocessor symbols.
Caution
To set this option, use Project>Options>C/C++ Compiler>Extra Options.