DSPRelated.com
Forums

VisualDSP C Compiler 8192 Element Array Restriction

Started by Waldron, Donald M N-BAE Systems March 19, 2001
The Analog Devices Web Site
http://content.analog.com/anom/anomprintdisplay/0,1828,58~1,00.html lists a
DSPTools anomoly (DSP0230 ) for the 21xx/Compiler

Anomaly: Compiler doesn't support arrays larger than 8192 elements

Solution: Code generated by the compiler cannot access C arrays larger
than 8192 elements, since the code will have a "MODIFY" instruction, which
uses a 14-bit M register, to adjust the array index.

Sure enough, writes to the last half of a 16K element array are incorrectly
written as 0's.

The listed solution doesn't help. Is there a solution (other than splitting
the arrays)? In C? In Assembly? Where is the bit-size of the M register
defines to be 14 bits?

Regards!

Don Waldron