Implementations
The implementation of memory management depends greatly upon operating system and architecture. Some operating systems supply an allocator for malloc, while others supply functions to control certain regions of data. The same dynamic memory allocator is often used to implement both malloc
and the operator new
in C++. Hence, it is referred to below as the allocator rather than malloc
.
Read more about this topic: C Dynamic Memory Allocation