Skip to content
/ membed Public

A fast and lightweight block memory management for embedded systems

License

Notifications You must be signed in to change notification settings

hamidrm/membed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

membed

A lightweight and fast block memory management library for embedded systems. Every time it is seeking a free slot, it will cache multiple instances to immediately allocate future slots that will be requested.

Sample Usage:

mem_ctx_t mem;
void *a_ptr;
uint8_t heap_buff[MEM_CALC_BUFF_SIZE(32,256)]; //32 Slot x 256 Buffer
mem_create(&mem, heap_buff, 32, 256);
a_ptr = mem_alloc(&mem, 1600);
//Code for using a_ptr
mem_free(&mem, a_ptr);

About

A fast and lightweight block memory management for embedded systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages