Leonardo,

 

Yes, .data is considered. Since .data goes to the ROM, it’s added to .text. This is what gets printed out.

 

If you’re asking this because you face some out-of-memory issues, it’s probably because of the stack overwriting the top of the .bss. Of course, objudump won’t tell you anything about the stack size…

 

Janos

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leonardo B. Oliveira
Sent: Thursday, May 18, 2006 10:25 AM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] tinyos RAM calculation: just .bss (not .data)?

 

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

Reply via email to