Another tweak that we used in our project is to have a central message
pool (using the Pool interface). That way, not each component declares
his own buffer for the messages, but it's only done once at one place.
But then you have to handle the possibility that there is no buffer
available -> slighly increases the program memory and complexity.

Also, if an array is representing a constant, uses the constant key
word in front of the declaration. For mica family (AVR) programs, you
have to use a macro call (PROGMEM or something like that) in addition
to constant..

Alban

2008/4/8, Michiel Konstapel <[EMAIL PROTECTED]>:
>
>
>
> Tweak your TOSH_DATA_LENGTH to be just big enough for your payloads so you
> don't waste memory on packet buffers.
>  Michiel
>
>
>  -----Original Message-----
>  From: [EMAIL PROTECTED] on
> behalf of Flavio Pompermaier
>  Sent: Tue 4/8/2008 10:52 AM
>  To: Tinyos
>  Subject: [Tinyos-help] Minimizing RAM  consmption
>
>  Hi,
>  I would like to know if there's any document reporting all possible
> enhancements focused in minimizing RAM consumption on Tmotes.
>  And why components variables are stored in RAM whereas function local
> variable are stored in ROM?? Shouldn't be the viceversa?
>
>  Some suggestions I found for RAM consumption minimizing are:
>      - use enum for constants instead of variables
>      - avoiding signalling from command/events
>     -  do not use enum variables
>  others?
>
>  Thanks,
>  Flavio
>
>
>
>
>        Inviato da Yahoo! Mail.
>  La casella di posta intelligente.
>  http://it.docs.yahoo.com/mail/overview/index.html
>
>
>
>
> _______________________________________________
>  Tinyos-help mailing list
>  [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to