A data element declared "globally" (outside of a method) will
not be on the stack and its size will be included in compiler's
report of RAM used. (IIRC) the stack itself is not included in this
report.

What exactly is the "it" that says how much RAM you are using?
The compiler?

And have you possibly made a copy of your 600 byte object someplace?
MS


Gaurav Chhawchharia wrote:
> Hello All,
> 
> I am using tinyos-1.x on boomerang on windows. I am doing some
> application programming.
> 
> I have declared an array of about 600 bytes (plus some other data) in
> the implementation section of the module (So it should not be on
> stack. Right?). When I compile it, it says 860 bytes in the RAM. Now I
> make use of this array of 600 bytes in the ReceiveMsg.Receive event
> and compile it. Now it says 1460 bytes in RAM.
> 
> Someone please help me with an explanation.
> 
> Thanks,
> Gaurav.
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to