I have code I want to benchmark on my OMAPL138 DSP and it uses normal C "new" etc...
I have succeeded in first attempt using what apparently is the default heap implementation HeapStd, now I want to try other sys/bios heaps starting with HeapMem to compare performance...
Working with my cfg file using xgconf I created a new default heap instance as:
BIOS.heapSize = 0;
var heapMem0Params = new HeapMem.Params();
heapMem0Params.instance.name = "heapMem0";
heapMem0Params.size = 6291456;
heapMem0Params.sectionName = ".heap";
Program.global.heapMem0 = HeapMem.create(heapMem0Params);
Memory.defaultHeapInstance = Program.global.heapMem0;
Memory.defaultHeapSize = 6291456;
However when I compile I get:
Description Resource Path Location Type
xdc.runtime.HeapStd.Instance#0 : The RTS heap (Program.heap = 0) is used up. .xdchelp /DSP 53 C/C++ Problem
When I try to set value to Program.heap=2048, the tool always resets it to 0 and gives me the same error...
What is the proper way to set up a new default heap impl statically using the cfg file/xgconf?