[Tinyos-help] Bug In Arithmetic Ops

Philip Levis pal at cs.stanford.edu
Wed Nov 21 13:32:50 PST 2007


On Nov 21, 2007, at 1:21 PM, Federico Fiorentin wrote:

>
> > Are you sure that you have no warning like "non-atomic read or  
> write"?
> I'm sure, there is right use of atomic statement.
>
> David, you said that it normal this behavior.
> isn't there any solution for this problem?
>
> You said that msp430-gcc's use of the multiply instruction is  
> broken :-(
> Does this affect normal subtraction too?
>
> I'm very surprised that MSP430 has problem in normal arithmetic  
> operation like add,sub...

I'd be very surprised as well. If there's a problem, it's the  
compiler. That being said, after years of thousands of users, this is  
the first it's ever come up. So it might just be your code. Take a  
look at the assembly -- does it look right?

Phil


More information about the Tinyos-help mailing list