Roy Shea wrote:
> Hello Gus,
> 
>> What is the simplest way to get the symbol ActiveMessageAddressC$addr
>> into the executable image?
> 
>> I know it doesn't hurt anything now, but eventually I'll want to use
>> the  ability to tag the motes at compile time and use that
>> information.
> 
> My experience is that the compiler does a good job of optimizing away
> unused variables.  Perhaps this is what you are seeing?  As such I think
> you'll find that the warning generated by tos-set-symbols goes away as
> soon as you actually do use that information within a program.
> 
> An easy way to test this is to explicitly use the node address.  You can
> do this through the amAddress and setAddress commands of the
> ActiveMessageAddress interface.
> 
> Hope that helps,
> -Roy
> 

That is exactly what I saw. Thanks for the tip. For right now I'm just
using a dummy variable in the Boot.booted() function to get the compiler
to include the variable.

The problem I have is that the bootstrap loader is in a script and
returns an error message/code if it fails to find the variable. This
causes the script to abort. It's easier to fix the app than the script.

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

Reply via email to