What strategies do you use for resource optimization and memory management when writing code for constrained embedded devices?