java - What is dynamic linker in programming? -


i confused linker concept

  1. can use linker in java?
  2. if how linking happen in android development?

a linker program takes individual compiled files , combines them single executable program.

imagine have program 2 files: 1 has main function starts program, other defines helper function. when compiler works on main file produce code calls helper function without knowing if exists or does. linker takes on , "resolves" function call, right function entered when program run.

there 2 types of linkers:

  • a static linker runs before execution, producing executable program file or library.
  • a dynamic linker runs while program runs, looking needed symbols in different libraries.

usually linker concept applied native code, on os level. if want apply java, uses dynamic linking only; linker integrated jvm.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -