The $ was originally used because it's a token that a C name can't have but 
which assembly can. The issue was that gcc's assembler is by default compiled 
to not support $, but you can enable it with a simple flag. But this meant we 
had to distribute our own version of the assembler. So we gravitated to __.

Phil

-------
Philip Levis
Associate Professor
Computer Science and Electrical Engineering
Stanford University
http://csl.stanford.edu/~pal

On Dec 23, 2013, at 5:52 PM, Eric Decker <[email protected]> wrote:

> 
> 
> 
> On Mon, Dec 23, 2013 at 2:13 PM, Addisu Z. Taddese 
> <[email protected]> wrote:
> I'm using TinyOS 2.1.2. I wasn't clear on how the dollar sign was used. I 
> thought it was just a debugging convenience.
> 
> One of the things that got confused was the debugger.
> 
> anytime you had to type a nesc mangled symbol name you had to escape the "$". 
>   It was a royal pain.   We lobbied David to change it to "__"
>  
> Thanks for the help.
> 
> 
> On Mon, Dec 23, 2013 at 3:58 PM, Eric Decker <[email protected]> wrote:
> 
> There is a way to do it but ....   
> 
> If you do a build with verbose you should see the switch that tells nesc to 
> use "__".   You can do a search for that switch using "grep" and that will 
> tell what files it is buried in.
> 
> It hasn't been done that way in a long time.   Using $ in symbol names caused 
> lots of problems when we moved the compiler versions forward.   That is why 
> we went to __  (double under).
> 
> Why are you using TinyOS 1?   That has been supported in many moons.
> 
> Current version is TinyOS 2.1.2
> 
> 
> 
> On Mon, Dec 23, 2013 at 1:27 PM, Addisu Z. Taddese 
> <[email protected]> wrote:
> Hello,
> 
> Looking at this website 
> (http://www.tinyos.net/tinyos-1.x/doc/nesc/nesc-debugging.html), it looks 
> like GDB, at one point, supported mapping nesC names to C names such that M$F 
> maps to function F in module M so that one doesn't have to write M__F. When I 
> try to do this with my copy of msp430-gdb (v 7.2), it comes back with a "No 
> symbol in current context" error. Does anyone know how I can get this 
> functionality back?
> 
> Thanks,
> Addisu
> 
> 
> -- 
> Addisu Z. Taddese
> Ph.D. Student
> Electrical Engineering and Computer Science Department
> Vanderbilt University
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
> 
> -- 
> Eric B. Decker
> Senior (over 50 :-) Researcher
> 
> 
> 
> 
> -- 
> Addisu Z. Taddese
> Ph.D. Student
> Electrical Engineering and Computer Science Department
> Vanderbilt University
> 
> 
> 
> -- 
> Eric B. Decker
> Senior (over 50 :-) Researcher
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to