Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 560589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:21:35+00:00 2026-05-13T12:21:35+00:00

When you say optimization, people tend to think speed. But what about embedded systems

  • 0

When you say “optimization”, people tend to think “speed”. But what about embedded systems where speed isn’t all that critical, but memory is a major constraint? What are some guidelines, techniques, and tricks that can be used for shaving off those extra kilobytes in ROM and RAM? How does one “profile” code to see where the memory bloat is?

P.S. One could argue that “prematurely” optimizing for space in embedded systems isn’t all that evil, because you leave yourself more room for data storage and feature creep. It also allows you to cut hardware production costs because your code can run on smaller ROM/RAM.

P.P.S. References to articles and books are welcome too!

P.P.P.S. These questions are closely related: 404615, 1561629

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:21:35+00:00Added an answer on May 13, 2026 at 12:21 pm

    My experience from an extremely constrained embedded memory environment:

    • Use fixed size buffers. Don’t use pointers or dynamic allocation because they have too much overhead.
    • Use the smallest int data type that works.
    • Don’t ever use recursion. Always use looping.
    • Don’t pass lots of function parameters. Use globals instead. 🙂
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is an interesting optimization problem that I think about for some days now:
I have come across a lot of optimization tips which say that you should
We should forget about small efficiencies, say about 97% of the time: premature optimization
People say that the clojure implementation is excellent apart from the limitation of having
I don't know much about database optimization, but I'm trying to understand this case.
Ok, first of all, I know people will say depends on the data, the
Say I'd like a mutable, unordered to-many relationship. For internal optimization reasons, it'd be
It seems that the phrase Premature Optimization is the buzz-word of the day. For
I'm working on a Nelder-Mead optimization routine in C that involves taking the average
I want to install let's say all of the top-100-free applications of the market

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.