You can also use the size utility to find out sizes of various sections as well, or the avr equivalent avr-size.

Tehn Yit Chin
Software Engineer, Grey Innovation Pty. Ltd.

Leonardo B. Oliveira wrote:
Hi all,

it seems that .data is not considered while tinyos calculate the
amount of RAM mem consumed. Why not?

@echo "@objdump -h $(MAIN_EXE)|
perl -ne
'$$b{$$1}=hex $$2 if /^\s*\d+\s*\.(text|data|bss)\s+(\S+)/;
END { printf("%16d bytes in ROM\n%16d bytes in RAM\n",
$$b{text}+$$b{data},$$b{bss}); }'"
                      ^^^^^^^
Thx in advance,

Leonardo


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to