My C++ project is for a SHARC 21479 DSP.
How can I enforce that the memory alignment of arrays allocated on the heap are on double word boundaries?
float* arr = new float;
float* arr = new(heapID) float ; // for large arrays allocated in external memory heap.
As far as I understand the default alignment for the above case will be that of sizeof(float) which is single word (32 bits) alignment. I need to have them allocated on double word (64-bit) boundaries.