A couple of basic pointers:

- Try using the msp430-gcc 4.7.x compiler, optimizes a tad better.
- Disable printf's, and reduce the length of the printf's messages.
- Use enum, define constants using the const keyword
- Check for unused/over-dimensioned buffers.
- Check your buffers and variable types, for example a value that will not
grow beyond 0-255 can be defined as uint8_t rather than uint16_t.
- Try to measure your code coverage and detect unused code that may eat
your RAM out.

Cheers,

--Antonio



On Mon, Oct 21, 2013 at 3:21 PM, Mojito <[email protected]> wrote:

> Hi all,
>
> I am using Zolertia Z1 mote, msp430-gcc-4.6.3 compiler to merge different
> modules (written from different people) to create a single application.
>
> My problem is the RAM: all the modules wired together exceed the total RAM
> of about 500 bytes.
>
> 1) I do not precisely know what the compiler write in the RAM, so where can
> I found this information?
>
> 2) Have you some general C programming or wiring tricks to save RAM?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://tinyos-help.10906.n7.nabble.com/RAM-usage-reduction-tp23695.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
--
Antonio Liñán Colina
R+D Engineer
@: [email protected]
@: [email protected]
------------------------------
Advancare
Ph.: +34 935 511 403
http://www.advancare.com
http://www.zolertia.com
http://zolertia.sourceforge.net
http://webshop.zolertia.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to