DSPRelated.com
Forums

Accessing 2D array element

Started by Unknown May 28, 2007
Hi,

i am working ccs 3.1 writing assembly  program for 64x processor. i
have "c" program line  like

 vertical[ack][k++];

how to access this array element using assemly  program.

Regards

Vadivel.ks

vadivel.ks@gmail.com wrote:


> i am working ccs 3.1 writing assembly program for 64x processor. i > have "c" program line like
> vertical[ack][k++];
> how to access this array element using assemly program.
It depends on the declaration of the array. int vertical[10][10]; is accessed very differently from int **vertical; though both are referenced the same in C. -- glen