In this article, We are going to cover address binding with the help of an example and Its types like compile time, load time, and execution time address binding. Let’s discuss one by one.
Address Binding :
The Association of program instruction and data to the actual physical memory locations is called the Address Binding. Let’s consider the following example given below for better understanding.
Consider a program P1 has the set of instruction such that I1, I2, I3, I4, and program counter value is 10, 20, 30, 40 respectively.
Program P1 I1 --> 10 I2 --> 20 I3 --> 30 I4 --> 40 Program Counter = 10, 20, 30, 40
Types of Address Binding :
Address Binding divided into three types as follows.
Compile-time Address Binding :
- If the compiler is responsible for performing address binding then it is called compile-time address binding.
- It will be done before loading the program into memory.
- The compiler requires interacts with an OS memory manager to perform compile-time address binding.
Load time Address Binding :
- It will be done after loading the program into memory.
- This type of address binding will be done by the OS memory manager i.e loader.
Execution time or dynamic Address Binding :
- It will be postponed even after loading the program into memory.
- The program will be kept on changing the locations in memory until the time of program execution.
- The dynamic type of address binding done by the processor at the time of program execution.
The majority of the Operating System practically implement dynamic loading, dynamic linking, dynamic address binding. For example – Windows, Linux, Unix all popular OS.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between Compile Time and Load Time address Binding
- Difference between Load Time and Execution Time address binding
- Difference between Compile Time and Execution Time address binding
- Difference between MAC Address and IP Address
- Difference between 3-address instruction and 1-address instruction
- Difference between 3-address instruction and 0-address instruction
- Difference between 3-address instruction and 2-address instructions
- Difference between 2-address instruction and 1-address instructions
- Types of Three-address codes
- Threads and its types in Operating System
- Cryptography and its Types
- Encryption, Its Algorithms And Its Future
- Computer Organization | Instruction Formats (Zero, One, Two and Three Address Instruction)
- Logical and Physical Address in Operating System
- Local Broadcast and Loopback Address
- Difference between IP address and Port Number
- How Address Resolution Protocol (ARP) works?
- Introduction of MAC Address in Computer Network
- Address Resolution in DNS (Domain Name Server)
- Three address code in Compiler
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.