cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,363 Views
Registered: ‎02-07-2011

processor stack when copying char array to float array

Hello 
I am implementing an image application onvirtex 5

Icompile succefully thecode and i read the image and the processor start the imae processing andit stacks on this function 

inline void BuildQuantizationTable(float *qtable, const unsigned char *ref_table)
{
int c = 0;

for (int i=0; i<8; i++)
{
for (int j=0; j<8; j++)
{
unsigned char val = ref_table[c];

qtable[c] = val;
c++;
}
}

I find that this assignment qtable[c] = val; causes the stack   of the processor
i tried to replace this by a memcpy and the processor continue the execution bit i havent  a good  result 

please have anybody an idea how to solve this 

0 Kudos
0 Replies