Our idea for an improved custom memory manager
is the following:
- expand the memory manager API so that it will receive the 1) type 2) size 3) access usage for the different memory zones of the DSP: like delay lines, static tables, DSP struct itself…
- have the
-mem
make the generated C++ code uses this extended memory manager API
Then use it in two steps:
- allocate a
dummy
DSP so that the memory manager could get all relevant informations about the DSP memory needs - then the memory manager can decide the best allocation strategy with its 1) knowledge of the board capability (different RAM sections with their size and access speed) 2) requirement needs by the given DSP
- finally really allocate the DSP object by placing the DSP struct, delay lines, and static tables at the proper location in memory.
Do you think this strategy would fit your needs ?