This is an old revision of the document!


Energy Efficient Programming

Energy-efficient programming is crucial while we consider the influence of the program execution, computation, and data processing on the amount of energy which is consumed during the process.

During computations, the processor typically consumes the majority of the energy. On average, the CPU consumes almost 90% of the energy, with the remaining energy consumed mainly by memory[1]. This is true regardless of the programming language type. It does not matter if the language is compiled, interpreted, or virtual.

Cytaty

Now, software energy efficiency is going mainstream. It is increasingly common to see smartphone users avoiding CPU-intensive apps just to get a bit more out of the phone battery. Even cloud-based systems are paying attention to software energy efficiency because of its impact on the carbon emissions of data centers[2].

Consumed power by a running code in a digital system is described by the formula: P = ΔT x F x U x I where F is the frequency clocking the digital components, ΔT the code run time and U and I are voltage value and current rating. Minimizing the average F is discussed at point B. Minimizing ΔT means to cut the number of clocks at the average F using programming techniques on the HLL or use Parallel Assembly instructions for integer or float data types [3].


[3] Iossifov, V. (2021). Programming Techniques for Energy-Efficient Software. In: Georgiev, I., Kostadinov, H., Lilkova, E. (eds) Advanced Computing in Industrial Mathematics. BGSIAM 2018. Studies in Computational Intelligence, vol 961. Springer, Cham. https://doi.org/10.1007/978-3-030-71616-5_15
en/multiasm/papc/chapter_6_14.1763208149.txt.gz · Last modified: 2025/11/15 12:02 by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0