[Tinyos-help] How to measure the memory cost

AIGroup gruppodinfo at gmail.com
Thu Feb 14 01:08:47 PST 2008


Hi Janos,
thanks for your precious answer.
Where can i read more about this?
I'm looking for a document but i still don't find it.
Thanks a lot for your time.

Roberto

2008/2/13, Janos Sallai <sallai at isis.vanderbilt.edu>:
>
>  Roberto,
>
>
>
> The local automatic variables are not counted when the make system prints
> out the RAM usage. I suspect you have some of those in your code.
>
>
>
> They are created dynamically on the stack, and thus, it's hard to tell
> what is the maximum possible stack depth. (There exist static stack depth
> analysis tools, but, as of now, the TinyOS make system does not make use of
> any of them.)
>
>
>
> Janos
>
>
>  ------------------------------
>
> *From:* tinyos-help-bounces at millennium.berkeley.edu [mailto:
> tinyos-help-bounces at millennium.berkeley.edu] *On Behalf Of *AIGroup
> *Sent:* Tuesday, February 12, 2008 6:51 AM
> *To:* TinyOS
> *Subject:* [Tinyos-help] How to measure the memory cost
>
>
>
> Hi all,
>
>
>
> solved the problems explained in my previous post, I'm interesting to
> study the memory cost.
>
> I know the importante of RAM and ROM value following the command "make
> micaz"
>
> But, enough I allocate many variables an many arrays, the corresponding
> RAM value is 453bytes.
>
> Is it possibile?
>
> The style of my code is very simple (is taken from Blink example). In
> Blink I  include two file : an header file (svm.h) and an implementation C
> file (svm.c).
>
> May the C code doesn't involve the Rom and Ram values?
>
> My variables and arrays are just in the C code.
>
> I hope my explation is good.
>
> Thanks for your help in advance
>
>
>
> Roberto
>
>
>
> ps
>
> the Rom value is about 67K
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080214/8c07684b/attachment.htm


More information about the Tinyos-help mailing list