Search Results

Documents authored by Larsen, Ken Friis


Document
Technical Track Paper
Does GCC Compiler Development Pay for Itself? GCC Versions' Impact on Energy Consumption

Authors: Brage Isak Keiserås, Bo Markussen, Ingrid Chieh Yu, Ken Friis Larsen, Maja H. Kirkeby, and Michael Kirkedal Thomsen

Published in: LIPIcs, Volume 394, 20th International Symposium on Empirical Software Engineering and Measurement (ESEM 2026)


Abstract
Background. Compilers are actively developed programs, with newer versions implicitly promising better performance. Aim. In this paper, we evaluate whether the cost of the expected improvements in optimisations in newer versions of the GCC C compiler pays off, both in terms of execution time and energy consumption. Method. To do so, we select 10 major versions of GCC (spanning GCC-4 to GCC-13), and four different optimization flags (-Og, -O2, -O3, and -Os) to compile and run benchmarks written in C from the SPEC CPU 2017 benchmarking suite, measuring both the energy and time of compilation and running of the benchmarks. A linear mixed-effects model mapping the GCC major version number to a numerical variable is then fitted to the data. Result. We find a statistically significant trend of decreasing running costs when optimized with -O2 and -O3, with an overall decrease in costs (for both energy and time) amounting to 13% for -O2 and 9% for -O3 overall (from GCC-4 to GCC-13). However, this is not without a cost, as there is also a statistically significant trend of increasing compilation cost for the optimization levels tested except -Og, with an increase amounting to 17% in energy and 15% in time with -O3 enabled, and 18% in energy and 16% in time with -O2 enabled. Some benchmarks benefit more than others, which we hypothesize is due to more advanced vectorization in newer compiler versions. Conclusion. GCC is producing lower-cost programs, at the expense of higher compilation cost. Still, the trade-off is well worth it as a single additional execution of the compiled program offsets the increased cost of compilation for both the run-time and energy cost.

Cite as

Brage Isak Keiserås, Bo Markussen, Ingrid Chieh Yu, Ken Friis Larsen, Maja H. Kirkeby, and Michael Kirkedal Thomsen. Does GCC Compiler Development Pay for Itself? GCC Versions' Impact on Energy Consumption. In 20th International Symposium on Empirical Software Engineering and Measurement (ESEM 2026). Leibniz International Proceedings in Informatics (LIPIcs), Volume 394, pp. 38:1-38:19, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2026)


Copy BibTex To Clipboard

@InProceedings{keiseras_et_al:LIPIcs.ESEM.2026.38,
  author =	{Keiser\r{a}s, Brage Isak and Markussen, Bo and Yu, Ingrid Chieh and Larsen, Ken Friis and Kirkeby, Maja H. and Thomsen, Michael Kirkedal},
  title =	{{Does GCC Compiler Development Pay for Itself? GCC Versions' Impact on Energy Consumption}},
  booktitle =	{20th International Symposium on Empirical Software Engineering and Measurement (ESEM 2026)},
  pages =	{38:1--38:19},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-450-5},
  ISSN =	{1868-8969},
  year =	{2026},
  volume =	{394},
  editor =	{Feldt, Robert and Paasivaara, Maria and Mendez, Daniel and Wagner, Stefan and Bar\'{o}n, Marvin Mu\~{n}oz},
  publisher =	{Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESEM.2026.38},
  URN =		{urn:nbn:de:0030-drops-280064},
  doi =		{10.4230/LIPIcs.ESEM.2026.38},
  annote =	{Keywords: Compilers, Compiler Optimisation, GCC, Energy Consumption, Energy Measurement}
}

Any Issues?
X

Feedback on the Current Page

CAPTCHA

Thanks for your feedback!

Feedback submitted to Dagstuhl Publishing

Could not send message

Please try again later or send an E-mail