On Thu, 4 Dec 2003, Krishnamurthy, Gita wrote:

> Can anyone tell me the partitioning of code size and data size in
> Tinyos?  What is the actual size of tinyos?

It really depends on the application you are developing.

In CVS, in contrib/tinybt/tools there is a program called "check_size.pl"
which can give some information about the sizes of code compiled for the
avr platform. (It will need minor editing since a binary for our platform
is hardcoded as an argument, and it is a perl-hack), It gives output like
this:

$ ../../tools/check_size.pl
Size breakdown
Component Name         code    bss
-----------------------------------
AssemblyM              5378   1021
CountM                 2108     12
HCICore0M              1682    159
HCICore1M              1606    159
HCIPacket0M             606    155
HCIPacket1M             588    155
HPLBTUART0M             160      4
HPLBTUART1M              80      5
HPLClock                 70      4
IntToLedsM              158      0
LedDebugM               336      5
Processor_init          202      0
TOS_post                100      0
__nesc_atomic_end         4      0
__nesc_atomic_start       8      0
__vector_15             180      0   Timer0/Counter0 compare match
__vector_18              94      0   USART0, Rx Complete
__vector_19             118      0   USART0, Data Register Empty
__vector_30              84      0   USART1, Rx Complete
__vector_31             128      0   USART1, Data Register Empty
main                    666      0
memcmp                   26      0
nmemcpy                  38      0
strcpy                   14      0
-----------------------------------
total                  14434   1679

...

While the compiler does shuffle code around during compilation, it does
give you an idea about what parts of your code takes up most space. The
above is component breakdown, you can have function/method breakdown if
you like.

I would be very happy to know if it has any value to you.

Mads

-- 
+----------------------------------------------------------------------+
|  Mads Bondo Dydensborg.               http://www.distlab.dk/madsdyd/ |
|  +45 35 32 14 18                                                     |
+----------------------------------------------------------------------+
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to