I am using the IAR C++ compiler with MQX 3.7 and the code that is being ported uses containers which, therefore, use dynamic memory (for C++ new/delete). Is there an easy way to:
- hook up the new/delete - malloc/free to the MQX memory objects, OR
- use a separate heap for the C++ new/deletes
Has anyone tackled this before and which way did you go?
The device that this is running on has sufficient memory, it's just that we want to use the code with minimal changes.