Jump to content
43oh

Memory Footprint With a Thermometer Example on Energia


Recommended Posts

Compared to other embedded computing platforms, the MSP430 puts memory usage under heavy stress.

 

What are the consequences of the programming style?

 

I took a basic thermometer example with a moving average algorithm and played with different options.

 

Thermometer_basic.zip

Thermometer_function.zip

Thermometer_class.zip

Thermometer_library.zip

Link to post
Share on other sites
Compared to other embedded computing platforms, the MSP430 puts memory usage under heavy stress.

 

I'm not sure I would agree with that. As with everything, It all depends on what you are doing. If you take the ASCIITable example and compile it on Energia 1.0 it only uses 1,518 bytes. On Arduino 1.0 that same example needs 2704 bytes. BlinkWithoutDelay on Energia is 628 bytes, on Arduino it is 1002 bytes. Depending on the chip ( g2231 vs g2553 ) it can be smaller or larger depending on what the code does.

 

I don't see how that puts memory usage under heavy stress.

 

-rick

Link to post
Share on other sites
  • 3 weeks later...

I performed a test with a basic blinking LED sketch (embed1 attached below) compiled by the different Processing-based Wiring-derived IDEs, with their default parameters.

 

Here are the results:

post-22262-13513555351_thumb.png

Good news, the LaunchPad delivers the more compact executable.

 

As Rickta59 rightly points out,

it all depends on what you are doing.

But the news is worth knowing it.

embed1.zip

Link to post
Share on other sites
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...