1. A computer-implemented method for compiling source code of a software application, comprising: receiving a request to compile the source code, wherein the source code includes a plurality of code elements; and for one or more of the plurality of code elements: retrieving a priority flag corresponding to the code element, the priority flag specifying a relative importance of energy efficiency and execution performance for compiled code corresponding to the code element, and compiling the code element, such that an energy requirement to execute the complied code corresponds to the relative importance of energy efficiency specified by the priority flag.