Skip to content
/ heap_z Public

Lightweight and fast free memory manager suitable for embedded applications

License

Notifications You must be signed in to change notification settings

emb-lib/heap_z

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

heap_z memory manager

Lightweight and fast free memory manager suitable for embedded applications

Usage

At first, memory pool must be declared, for example:

#include <stdint.h>
#include <heap.h>

heap::pool<4096> HeapPool;   // size in bytes

The second, declare heap object with heap_guard1:

heap::manager<heap_guard> heap::Manager(HeapPool);

That's all, heap functions (malloc(), free(), new , delete etc.) can be used in ordinary manner.

See wiki page for additional information.


[1] See [thread-safe guard description page for details](https://github.com/emb-lib/heap_z/wiki/thread-safe guard configuration)

About

Lightweight and fast free memory manager suitable for embedded applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages