I am looking for a syntax to allocate memory from a secondary memory device and not from the default heap.
How can i implement it? Using malloc()
would by default take it from heap... Surely there must be another way!
I am looking for a syntax to allocate memory from a secondary memory device and not from the default heap.
How can i implement it? Using malloc()
would by default take it from heap... Surely there must be another way!
You'd have to build or adapt your own heap manager, and overload
new
anddelete
, as well asnew[]
anddelete[]
. Initialize the heap manager with the special memory.