[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] TOS2 tasks code size

Philip Levis pal at cs.stanford.edu
Sun Oct 9 09:48:48 PDT 2005


On Oct 9, 2005, at 2:13 AM, Cory Sharp wrote:

> Ah.  I think the big switch statement *is* reasonably efficient.
> After mangling and observing various app.c's, a dominating reason why
> using TOS2 tasks can produce larger binaries is ...
>
> 1) TinyOS 1.x tasks: any task defined but never posted is elided by  
> nesC.
>
> 2) TinyOS 2.x tasks: no tasks are elided, all defined tasks are
> compiled, including functions only ever invoked by those tasks.
>
> In the sample application I was using, 5 out of its 22 tasks that were
> never posted.  Those 5 were elided from the TOS1 tasks application and
> included in the TOS2 tasks application.

Ah, that is interesting. This sounds like something that the nesC  
compiler could know and optimize for (as it used to).

The one trick is that it's now possible to post a task through  
directly accessing the interface and using an ID. Hrm.

Phil
_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg


More information about the Tinyos-host-mote-wg mailing list