There is a lot of embedded software where hardware cost or energy consumption matters. Occasionally, time and money are wasted on fast software running on slow, cheap hardware made in low numbers. Other times, when hardware is made by the millions, investing more in software absolutely pays off.