The $ is silly and after years of arguing against it, David Gay added a directive to nesC that lets you set an alternate identifier instead of having to recompile a toolchain without the $ identifier.
-Joe On 10/29/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
Yes, it's come up many times... however I've never seen this '$' explanation before... thanks MS Philip Levis wrote: > On Oct 28, 2006, at 9:45 AM, Adam wrote: > >> Michael, >> >> Thank you. Here is the problem: >> >> I can compile 1.x application with "make telosb", but not "make micaz" >> -- show following errors (how to correct it): >> >> /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: >> warning: `CCATime >> r.start' called asynchronously from `CCA.startWait' >> /opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning: >> `Send.sendDone >> ' called asynchronously from `sendFailed' >> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages: >> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown >> opcode >> `state' >> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown >> opcode >> `state' >> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: >> unrecognized s >> ymbol type "" >> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown >> opcode >> `state' >> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error: >> expected comma >> after name `CC2420ControlM' in .size directive >> There are about 100 lines like this - omit here to save space... >> >> > > nesC uses $ in identifiers. > > Default versions of the avr assembler do not recognize it. But there's a > simple compilation flag in the assembler (something like "use_dollar") > which lets them work. So the TinyOS avr distributions have this enabled. > > It looks like you have a version that doesn't have it enabled. Check > which version of avr-gcc is being called? > > This has come up many times in the past on the list; I'd search the > archives. > > Phil _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
