What is compile time binding and runtime binding?
Compile time binding:
If it is known at compile time where the program will be loaded in memory, then
the compiler generates the absolute code. The compiler (or assembler) generates
absolute addresses for the symbolic addresses of variables and function names at
the time of compilation. The MS-DOS programs are bound at compile time.
In dynamic binding, the addresses of instructions and data in the memory are
decided at run time. If a process can be moved from one part of memory to
another part during execution, then binding is done at run time. Special
hardware (CPU register) must be available for this scheme to work. This method
is used in most general-purpose operating systems,