<?xml version="1.0" encoding="UTF-8"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
  <responseDate>2026-10-05T21:32:56Z</responseDate>
  <request identifier="28006" metadataPrefix="oai_dc" verb="GetRecord">https://drops.dagstuhl.de/oai</request>
  <GetRecord>
    <record>
      <header>
        <identifier>oai:drops-oai.dagstuhl.de:28006</identifier>
        <datestamp>2026-10-05T06:44:04Z</datestamp>
        <setSpec>ddc:004</setSpec>
        <setSpec>open_access</setSpec>
      </header>
      <metadata>
        <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
          <dc:title>Does GCC Compiler Development Pay for Itself? GCC Versions' Impact on Energy Consumption</dc:title>
          <dc:creator>Keiserås, Brage Isak</dc:creator>
          <dc:creator>Markussen, Bo</dc:creator>
          <dc:creator>Yu, Ingrid Chieh</dc:creator>
          <dc:creator>Larsen, Ken Friis</dc:creator>
          <dc:creator>Kirkeby, Maja H.</dc:creator>
          <dc:creator>Thomsen, Michael Kirkedal</dc:creator>
          <dc:subject>Compilers</dc:subject>
          <dc:subject>Compiler Optimisation</dc:subject>
          <dc:subject>GCC</dc:subject>
          <dc:subject>Energy Consumption</dc:subject>
          <dc:subject>Energy Measurement</dc:subject>
          <dc:description>Background. Compilers are actively developed programs, with newer versions implicitly promising better performance. &#13;
&#13;
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. &#13;
&#13;
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. &#13;
&#13;
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. &#13;
&#13;
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.</dc:description>
          <dc:publisher>Schloss Dagstuhl – Leibniz-Zentrum für Informatik</dc:publisher>
          <dc:contributor>Brage Isak Keiserås and Bo Markussen and Ingrid Chieh Yu and Ken Friis Larsen and Maja H. Kirkeby and Michael Kirkedal Thomsen</dc:contributor>
          <dc:date>2026</dc:date>
          <dc:relation>Is Part Of LIPIcs, Volume 394, 20th International Symposium on Empirical Software Engineering and Measurement (ESEM 2026)</dc:relation>
          <dc:type>InProceedings</dc:type>
          <dc:type>Text</dc:type>
          <dc:type>doc-type:ResearchArticle</dc:type>
          <dc:type>publishedVersion</dc:type>
          <dc:format>application/pdf</dc:format>
          <dc:identifier>doi:10.4230/LIPIcs.ESEM.2026.38</dc:identifier>
          <dc:identifier>urn:nbn:de:0030-drops-280064</dc:identifier>
          <dc:identifier>https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESEM.2026.38</dc:identifier>
          <dc:language>eng</dc:language>
          <dc:rights>https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights>
        </oai_dc:dc>
      </metadata>
    </record>
  </GetRecord>
</OAI-PMH>
