answersLogoWhite

0


Best Answer

Static binding is where the linker copies the called function into the program's executable image from the appropriate library and resolves the references to the function at compile/link time. The program contains a copy of the library function and does not need to load it at run time.

Dynamic binding is where the linker inserts stub code into the program's executable image that references the appropriate library. The library function is then copied into memory at load or run time and references are resolved then. The program does not contain a copy of the library function, and the library must be accessible at load/run time.

There are two kinds of dynamic binding. The first is load time, where the library must be loaded before the program starts to execute. In this case, if the library is not found, load fails and the program does not run. The second is run time, where the library must be loaded at the point of first access. This occurs after then program starts to execute, and the program can change its behavior depending on options or library availability.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

Static binding occurs at compile time. Dynamic binding occurs at runtime. Dynamic binding has a cost in terms of performance, however it allows objects of unknown type but with a common interface to behave according to their runtime type. In this way, code can be written in a more generic manner through "virtual" interfaces.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between dynamic and static binding?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Difference between dynamic polymorphism and static polymorphism with example?

Static polymorphism is used the concept of early binding or we can say compile time binding where as dynamic polymorphism used the concept of late binding or run time binding.


Static vs dynamic binding in c plus plus?

Static binding occurs at compile time. Dynamic binding occurs at runtime.


What is the difference between static and dynamic fighting?

Static stays the same and dynamic is always different.


What is Difference between static and dynamic list?

A static one cannot change, while a dynamic one can.


Difference between static and dynamic hazards?

lauda


What is the Difference between Dynamic pressure and static pressure?

The main difference of static pressure and dynamic pressure is:- static pressure is exerted by fluid at rest but dynamic pressure is pressure exerted by fluid in motion.


What is the difference between static pressure and dynamic pressure?

The main difference of static pressure and dynamic pressure is:- static pressure is exerted by fluid at rest but dynamic pressure is pressure exerted by fluid in motion.


What is the general difference between a static IP and a dynamic IP?

The general difference between a static IP and dynamic IP is that a static IP is reserved and does not change. A dynamic IP on the other hand changes each time one logs on.


What are the difference between static and dynamic hashing in DBMS?

Search operation in static hashing is time consuming, but in dynamic hashing it is not.


What is Difference between static and dynamic latch?

static latch: a latch without capacitor dynamic latch: latch with capacitor


What is the difference between dynamic torque and static torque ratings?

One difference between dynamic torque and static torque is the level of difficulty to measure. Static torque is each to measure, while dynamic torque is not. This is because it requires a transfer of an electric or magnetic effect.


Difference between static electricity and dynamic electricity?

There are two types of electricity; dynamic and static electricity. The main difference between these two types is that in static electricity, the electrons do not move but in dynamic electricity, the electrons move either in changing directions or in one direction.