•This paper presents a methodology for analyzing the energy consumption of embedded software.
•The motivation for the analysis is three-fold.
–It provides insight into the energy consumption in processors.
–It can be used to help verify if an embedded design meets its energy constraints and guide the development so that it does meet the constraints.
–Attempts at code re-writing demonstrate significant power reductions—justifying the motivation for such a power analysis technique.