https://github.com/johan-bolmsjo/phkmalloc_embedded
Demonstration of adapting phkmalloc for embedded use
https://github.com/johan-bolmsjo/phkmalloc_embedded
Last synced: about 2 months ago
JSON representation
Demonstration of adapting phkmalloc for embedded use
- Host: GitHub
- URL: https://github.com/johan-bolmsjo/phkmalloc_embedded
- Owner: johan-bolmsjo
- Created: 2024-10-06T17:09:48.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-10-06T17:18:17.000Z (8 months ago)
- Last Synced: 2025-03-26T22:11:42.034Z (2 months ago)
- Language: C
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hacked phkmalloc for embedded demo purpose.
phkmalloc is an old school simple malloc implementation that was used in FreeBSD
up to version 6. It's certainly not the fastest, does not scale with preemptive
threading, but is quite simple and resilient.Added calloc function for completeness.
There is `malloc`, `calloc`, `realloc` and `free` functions. `malloc_init` must
be run once before any of them are called (include malloc.h). Target
configuration is done in `malloc_config.h`; defaults are for a Posix
environment.malloc.pdf comes from http://phk.freebsd.dk/pubs/malloc.pdf
Keff keff.