JMGross wrote:
:
After re-reading the original post at 'StackOverflow', I noticed that the 
original poster did not mention the compiler he used. All he said was that it 
was an MSP430 compiler used for the contiki(?) os.
It is possible that this whole thing is not MSPGCC related at all. But looking 
at the result above, chances are it is an mspgcc he's using.
:

You can follow the thread on the Contiki mailing list: http://sourceforge.net/mailarchive/forum.php?forum_name=contiki-developers

Ward indirectly confirmed that he is using mspgcc. I've asked him to confirm this more explicitly.

p.s.: in theory, the whole calculation could be done at compile time, in both 
cases, since all values are known and no variable is declared volatile.

Perhaps this will be done, if you switch optimization on?

Hardy


Reply via email to