I have an app that
has three components. Component A provides a set of commands and no
events, and is used by the other two. The second component, X,
connects to A and wires up StdControl to it, etc. A third component,
component Y does not wire up to A. Compiling these three components
together into an app, the ROM size is 10598 bytes.
Then I do the same
as before, but also wire up Y to A in Y's configuration,
so Y also connects StdControl to A. No extra code is
written, no functionality was added. Just the wiring. Keep in
mind that StdControl was already wired up to A from X, and the only change now
is StdControl is also be wired up to A from Y. Compiling these three
components again, the ROM size becomes 11022 bytes. A 424 byte ROM
difference, which is significant because no functionality was changed
or added.
Is it possible to
make the compiler recognize that A is the same component referred to by X and Y,
and StdControl is the same interface?
Say I had 10
components like this that could all be compiled separately or together to form a
system or application - then the ROM size would increase by a minimum of 4kB
just from repetitive wiring, which I believe should
have been optimized out.
-David
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
