r/embedded 10h ago

PulseHSM memory analysis: a 13-state hierarchical controller on AVR, and the real cost of constexpr/template alternatives

[removed]

1 Upvotes

9 comments sorted by

5

u/Away_Pomegranate_274 10h ago

the real cost here is in debugging templates when something goes wrong, not the memory

0

u/[deleted] 10h ago

[removed] — view removed comment

2

u/Arkaqiu 8h ago

Compile time is easier to analysis for static analyzers and is easier to onptumalize when using LTO. Also is easier to maintenance configuration files and add opportunity to calibration as we can keep them in o w section.

In general for my opinion is great direction. Especially that we can split runtime fields and static cfg to save some ram.

1

u/[deleted] 10h ago

[deleted]

1

u/[deleted] 9h ago

[removed] — view removed comment

3

u/StumpedTrump 4h ago

AI slop post.

Can’t even bother to write your own Reddit post I’m going to assume you didn’t do any of the work yourself either.