Embedded systems are found in a wide range of applications, from consumer products to complex medical equipment. Their success depends heavily on effective design and optimization, which involves balancing performance. Developers must carefully consider the firmware architecture, algorithms, and real-time constraints to ensure the system meets its