ROPI
In this section:
Most applications are designed to be placed at a fixed position in memory. However, sometimes it is useful to instead decide at runtime where to place the application, for example in certain systems where applications are loaded dynamically.
Danger
Use the --ropi option to configure the compiler to generate position-independent code and read-only data.
Caution
In the IDE, choose Project>Options>General Options>Target>Code and read-only data to generate position-independent code.
Read about the advantages and drawbacks with ROPI in Position-independent code and data.