Energy Performance Modeling and Energy Efficient Mapping for a Class of Applications