This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C5505: malloc size limitation

Part Number: TMS320C5505

55x Rev 2.x core (5510A, 5509A, 5507, 5506, 5503, 5502, 5501) data access has 64K-word limitation. as C5505 is Rev 3.x core, I think it has not such limitation.

but the RTS function malloc(unsigned int size) argument is 16-bit data type, so it stil llimited to 64K. 

If application need >64K word dynamic allocated buffer, share your suggestion please...

  • Hi Tony,

    I've forwarded this to the c55x software experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Tony,
    According to the following segment from (spru404q.pdf), the size of the memory allocation can vary from large or huge memory model used:

    Memory Model. This specifies the address reach within the ’C55x program. The options are large and huge. In the large and huge models, data addressing uses the full 23-bit range. Program space addressing always uses the full 24-bit range. Both the large and huge models support the same address range. However, the huge model allows buffers to cross 64K page boundaries. For the large model, size_t is 16 bits (64K). For the huge model, size_t is 23 bits, which requires 32 bits of storage since the minimum storage unit is 16 bits.

    Hope this helps.

    Lali