What Is Self-Relocating Program?
Self-relocating programs are the best. You know when you're using a self-relocating program because it's much easier than any other. You don't have to worry about relocating your address-sensitive instructions or linking anything together. The program does the work for you! Self-relocating programs are used in time-sharing operating systems, where the load address of a program may change for each different execution. It allows memory sharing among many users without worrying about conflicts between their programs. Self-relocating programs are like ninjas. They move around and then strike. The idea behind a self-relocating program is that, instead of copying itself to each place it has to run, it can just move there without copying. This means that instead of making several copies of your program on a disk, with each copy having its different load origin, you only need one file, and you can have the same file run from any location in memory! Self-relocating programs are not necessary if your computer uses virtual memory. In the world of computers, there are many ways to run a program. You can type it in or copy and paste it somewhere else. What if you want to run a program that doesn't exist yet? That's where relocation comes in. It lets you use a program before it's finished, so your computer can start working on it immediately. The two functions are inbuilt into the program; the start address of the relocating code is usually specified as the execution start lesson of the program. Once the program is loaded into the memory for execution, the relocating logic takes control and performs the relocation using the load address and information regarding address-sensitive instructions. Static relocation is the difference between moving your home to a new location before moving in versus moving your home after you've already moved in. On the other hand, dynamic relocation is like having the movers come into your house and pack up all your stuff while you're watching. Then they unpack it at the new place and set it up again for you.
Related Terms by Operating Systems
Join Our Newsletter
Get weekly news, engaging articles, and career tips-all free!
By subscribing to our newsletter, you're cool with our terms and conditions and agree to our Privacy Policy.










