Do contiguous memory allocation schemes and non-contiguous memory allocation schemes require RELOCATABLE code? Explain
Yes RELOCATABLE code is required if we want to ensure max utilization of memory. Even in contiguous allocation,compaction is done to increase usage of memory and for compaction relocatable code is needed. Relocatable code is basically a code which can be modified according to our need to run at any memory address thus in compaction this is very much needed.
In non contiguous as we have several addresses not one thus relocatable code is needed so that it can be run on different memory addresses.
Get Answers For Free
Most questions answered within 1 hours.