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