Skip to content

Latest commit

 

History

History

static-dynamic-linking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Static Dynamic Linking

  • lib — Defines execute function

  • host — References execute in source

    • Links to lib statically
    • Provides the execute symbol in its executable binary
  • plugin — References execute in source

    • Does not link to lib at all
    • Leaving the execute symbol undefined at compile time.
    • At runtime, execute will be accessible because plugin is loaded into host, gaining access to host's symbols.