AnsweredAssumed Answered

C++ dynamic memory (new/delete) used in MQX with the IAR compiler

Question asked by Brian Danilko on Oct 11, 2011
Latest reply on Oct 14, 2011 by OldNick

Hi everyone,


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.