Design and optimization of processors for energy efficiency : a joint architecture-circuit approach