The main memory allocation interface is malloc. This is the largest in the C library. ... 'mmap' on the other hand is a system call that takes charge and requests the kernel to find an unused and contiguous region in an application's address that is large enough to allow for the mapping of several pages of memory.