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
The Assingment of memory takes place in contiguous blocks.We Call this Stack memory allocation because the...
The Assingment of memory takes place in contiguous blocks.We Call this Stack memory allocation because the assingment takes place in the function call Stack.The size of the memory to be allocated is known to the compiler.When a function is called,its variables get memory allocated on the stack. Suppose you have x functions running on your Pc where x= (3+ your roll number).These programms need memory allocation in decreasing order.(eg f4,f3,f2,f1......) Write a C++ Code to perform following instructions. a:) Insert(push)...
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
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).
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 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.
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.
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...
In this problem you will compute the dynamically efficient allocation of a depletable, non-recyclable resource. To...
In this problem you will compute the dynamically efficient allocation of a depletable, non-recyclable resource. To answer the questions below, assume the following: Allocate resource between two time periods t=1,2 The fixed supply of the resource is 10 barrels Demand is same in both periods and given by Pt = 15 – qt Marginal cost of extracting the resource is the same in both periods and is given by MCt=$5 The discount rate is 7% 1. What is the equation...
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...
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++)...