An early-stage statement-level metric for energy characterization of embedded processors