Question: Write a set of functions to implement a heap - based memory manager. Your mission is to write a module implementing malloc , free, and
Write a set of functions to implement a heapbased memory manager.
Your mission is to write a module implementingmalloc free, andrealloc Acquire a block of memory as described below the address and size of this data are variables in your module Create all structures in this block so that subsequent calls to these functions work correctly. Use a minheap for free blocks in your final version, but you might choose to use an array to get things working initially. Dont forget that malloc ensures that allocated blocks have been reset to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
