Skip to content

Loading and Linking

Dynamic Loading

  • Routine can be dynamic loaded at runtime
  • No special support from OS

Dynamic library formats

  • Linux: .so
  • OSX: .dylib
  • Windows: .dll

Static Linking

  • Libraries are combined by the loader into the program
  • Maybe contains dupicated codes

Dynamic Linking

  • Linking postponed until runtime

  • Only one code copy in memory and shared by everyone