java - What is dynamic linker in programming? -
i confused linker concept
- can use linker in java?
- 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
Post a Comment