I am programming for an embedded system, where resources are at premium cost.
A few techniques that I am aware of are -
- Remove/Reduce unused variable/memory.
- Use macros for small/inline functions.
Is there anything else that I can use for this? Also, please correct if I am wrong.
Please Note: I am not asking exclusively about low level programming.
Let's say I am bound to use some particular amount of stack memory only. My program doesn't use recursion.