I am working with an embedded system. The application is running on AT91SAMxxxx and cortex m3 lpc17xxx. I am looking into dynamic memory allocation as it would dramatically change the face of the application (and give me more Power).
I think the my only real route is to set out an area of memory for a heap and design a tailored malloc that best fits (pun) my purpose.
When looking at different algorithms for memory allocation you cant not stumble upon Doug Lea's malloc. I take it this has been used in embedded systems such as mine where there is no OS and tailored versions of say the sbrk() function have been provided to accomplish this. I'm trying to find good examples of this being achieved to maybe try a proof of concept before I jump into writing my own.
Is it possible to use dlmalloc in a system such as mine ?
If yes can anyone point me to a relevant resource ? (not found many that help me)
Is it better to go and write my own malloc that is tailored to my needs ?
And apologies most of my research so far has been on designing a malloc not using doug's which is a different challenge. Guess I'm trying to find out is looking into this route in more depth a waste of time.
Edit:
moral of the story: looking at dlmalloc in my case pointless.