address-independent code
nounUK /əˈdrɛs ˌɪndɪˈpɛndənt kəʊd/
US /əˈdrɛs ˌɪndɪˈpɛndənt koʊd/
Code that works the same no matter where it is placed in memory.
The compiler generated address-independent code so the program could run from any memory location.
RELATED WORDS
OTHER MEANINGS
2. Machine code that can be loaded at any address without modification.
Address-independent code lets the operating system load the same library into different processes at different addresses.
3. Software designed so its behavior does not depend on where it is stored.
Writing address-independent code makes the firmware easier to update on different devices.
4. A coding style that avoids hard-coded memory locations.
The team refactored the driver to use address-independent code instead of fixed pointers.