How do you organize code in embedded projects?

前端 未结 6 569
迷失自我
迷失自我 2021-02-01 23:04

Highly embedded (limited code and ram size) projects pose unique challenges for code organization.

I have seen quite a few projects with no organization at all. (Mostly

6条回答
  •  醉话见心
    2021-02-02 00:02

    I try to organize it as if I had unlimited RAM and ROM, and it usually works out fine. As mentioned elsewhere, do not try to optimize it until you absolutely need to.

    If you can get a pin-compatible processor that has more resources, it's better to get it working on that, concentrating on good structure and layout, then optimize for size later when you understand the code better.

提交回复
热议问题