Skip to content
/ mp Public

mp is a library that offers a set of functions for the administration of memory pools in C language. The concept of memory pool promises an easier and a less fragmented handling of memory. The memory is allocated at the beginning of the program, or whenever needed in big chunks and freed just once at the end of the program, instead of multiple t…

Notifications You must be signed in to change notification settings

tap3edit/mp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mp

mp is a library that offers a set of functions for the administration of memory pools in C language. The concept of memory pool promises an easier and a less fragmented handling of memory. The memory is allocated at the beginning of the program, or whenever needed in big chunks and freed just once at the end of the program, instead of multiple times for each allocation. The library offers analogue functions to malloc(), calloc(), realloc(), memalign(), strdup() and asprintf(), each of them taking a chunk of the current memory pool (or a specific one) instead of the memory directly from the heap. Among other functionalities the library offers the possibility of printing out the memory pools status and memory dump to a file. (Unfortunately no support yet to Microsoft Visual Studio). For including these functionalities to your project just add the header file mp.h and the libmp.a static library. An example on how to use the functions can be found in the test.c file

See the manual

About

mp is a library that offers a set of functions for the administration of memory pools in C language. The concept of memory pool promises an easier and a less fragmented handling of memory. The memory is allocated at the beginning of the program, or whenever needed in big chunks and freed just once at the end of the program, instead of multiple t…

Resources

Stars

Watchers

Forks

Packages

No packages published