Lably
Skip to content

Relocation (computing)

  • 4 min read
  • 4 chapters

Related on Lably

Through Library (computing), Execution (computing) and Compiler

Relocation is typically done by the linker at link time, but it can also be done at load time by a relocating loader, or at run time by the running program itself. Some architectures avoid relocation entirely by deferring address assignment to run time; as, for example, in stack machines with zero address arithmetic or in some segmented architectures where every compilation unit is loaded into a separate segment.

Segmentation

Object files are segmented into various memory segment or section types. Example segment types include code segment (.text), initialized data segment (.data), uninitialized data segment (.bss), or others as established by the programmer, such as common segments, or named static segments.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication