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
malloc()
You'd have to build or adapt your own heap manager, and overload new and delete, as well as new[] and delete[]. Initialize the heap manager with the special memory.
new
delete
new[]
delete[]