Roll-Over Arithmetic in DSP TI
Posted: Thu Jun 10, 2010 3:24 pm
Hi,
I have read the dsp programming on the following link:
http://en.wikibooks.org/wiki/Digital_Si ... rogramming
It has written that if we declare a variable suppose
unsigned short value=65500;
value+=100;
on the execution of above sequence of lines.
compiler should give output.
In Case of microcontroller:
value=44;
In Case of DSP:
value=65535.
it should not roll over.
But i have seen that running the above code into TI Code Composer Studio for TMS320C6713.
Output comes out to be value=44;
it is behaving as in microcontroller compilers.
Is this link is telling like or is it processor oriented?
Can u tell me, what is it?
Thanks to ROBOT.LK Team and specially to Neo.
I have read the dsp programming on the following link:
http://en.wikibooks.org/wiki/Digital_Si ... rogramming
It has written that if we declare a variable suppose
unsigned short value=65500;
value+=100;
on the execution of above sequence of lines.
compiler should give output.
In Case of microcontroller:
value=44;
In Case of DSP:
value=65535.
it should not roll over.
But i have seen that running the above code into TI Code Composer Studio for TMS320C6713.
Output comes out to be value=44;
it is behaving as in microcontroller compilers.
Is this link is telling like or is it processor oriented?
Can u tell me, what is it?
Thanks to ROBOT.LK Team and specially to Neo.