I am trying to make my own functions : malloc, free and realloc for use in embedded enviroment: PIC18F2620 (MPLAB IDE; PICC18 v3.35PL2 C Compiler), but this work is very hard...anyone can send-me these functions?
Section 8.7 of the book "The C Programming Language - Second Edition" by Kernighan and Ritchie has source code and description of a simple malloc() and free().
these functions are related to heap handling problem and are always problematic when it comes to speed . Instead bunch of buffers with fixed size and predictable execution time for both seizure and release procedures is preferred, of course if your program allows to use only limited number different sized buffers.