Well, I guess the whole question lies in the title.
I have been batteling between using the FreeRTOS provided heap management and the compiler provided memory management.
The FreeRTOS scheme is winning at the moment because I can easely make isso that the memory size is defined at run time and not comile time (since the board can be loaded in the factory with any size RAM)…
However, I do need a realloc and I would like it to be more optimized than a basic malloc/copy/free scheme (ie: free extra ram if shrink and grow in place (if possible)).
Has anyone ever implemented such function in heap4.c?