Question

Do contiguous memory allocation schemes and non-contiguous memory allocation schemes require RELOCATABLE code? Explain

Do contiguous memory allocation schemes and non-contiguous memory allocation schemes require RELOCATABLE code? Explain

Homework Answers

Answer #1

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.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Do wage subsidy schemes reduce unemployment? Explain your answer using an appropriate diagram for labour market
Do wage subsidy schemes reduce unemployment? Explain your answer using an appropriate diagram for labour market
Explain the portions of code that write to the serial port. What do these portions of...
Explain the portions of code that write to the serial port. What do these portions of the code do? Why is the display of the month treated differently? Serial.print((minutes & 0x70)>>4); Serial.print(minutes & 0x0F); lcd.print(now.month());
Do thermocouples require a power source to operate? If they do, explain or draw a diagram...
Do thermocouples require a power source to operate? If they do, explain or draw a diagram of how a thermocouple is connected to a power source? If they do not explain how a thermocouple operates(you can also include a drawing but you need to explain in words how a thermocouple operates).
Do investors require a premium for holding idiosyncratic risk? Do investors require a premium for holding...
Do investors require a premium for holding idiosyncratic risk? Do investors require a premium for holding systematic risk? Explain your answers for full credit, giving economic intuition for the reason.
Hello, I am trying to do an assignment that requires writing an MSP432 code to add...
Hello, I am trying to do an assignment that requires writing an MSP432 code to add two 64 bit numbers together and store the result in memory location 0x2000_0000. The problem is that the it is a 32 bit register. I don't know how to add to a load 64 bit numbers. The question is below but please feel free to use your own examples, I will understand better. Thank you very much. Write a small MSP432 code segment that...
A study was conducted to test whether marijuana use impacts your short-term memory. A simple random...
A study was conducted to test whether marijuana use impacts your short-term memory. A simple random sample of college students that do NOT use marijuana was taken, and given a memory test in which they were shown items in a particular order then asked to recreate that ordering. A second simple random sample was taken of college students that use marijuana 4 - 7 days per week, and they were given the same memory test. A higher score on the...
q : explain the code for a beginner in c what each line do Question 2....
q : explain the code for a beginner in c what each line do Question 2. The following code defines an array size that sums elements of the defined array through the loop. Analyze the following code, and demonstrate the type of error if found? What we can do to make this code function correctly ? #include <stdio.h> #define A 10 int main(int argc, char** argv) { int Total = 0; int numbers[A]; for (int i=0; i < A; i++)...
Explain the term “ Depreciation is a NON cash expense” and how do company’s use it.
Explain the term “ Depreciation is a NON cash expense” and how do company’s use it.
Please use loop and branch instructions to write an assembly code segment to do the following:...
Please use loop and branch instructions to write an assembly code segment to do the following: Read DIP switch. If DIP switch has the setting: b7 = b0 = 1, then, load A with number $11, load B with number $22, and do A+B; save the result to memory location $1000; if DIP switch has the setting: b4= b3 = 1, then, load A with number $55, load B with number $33, and do A-B; save the result to memory...
GI, Nervous and GU system discussion 1. How do you code for ERCPs? explain in detail,...
GI, Nervous and GU system discussion 1. How do you code for ERCPs? explain in detail, give an example. 2. When do you use a mesh when coding a hernia repair? Explain and give an example 3. Explain the endoscopic procedures that can be performed in the GU system.