VOOZH about

URL: https://www.phoronix.com/review/gcc_48_og/4

⇱ Benchmarking The New Optimization Level In GCC 4.8 - Phoronix


👁 Phoronix

Benchmarking The New Optimization Level In GCC 4.8

Written by Michael Larabel in Software on 12 February 2013 at 02:02 AM EST. Page 4 of 4. 5 Comments.

The -Og level did better than -O0 and -Os for the lightweight path-tracer.

The -Og optimization level introduced in GCC 4.8 does much better than -O0 for the resulting binary performance while still making it possible to debug the binary and produce expected results. As the testing also showed, the compilation time is (obviously) increased due to some optimizations being applied. The -O3 level or similar tuned compiler options should be used by software vendors when deploying release binaries while initial testing on -Og shows it to be interesting for producing higher-performing debug builds while at a slight cost to the compilation time.

If you enjoyed this article consider joining Phoronix Premium to view this site ad-free, multi-page articles on a single page, and other benefits. PayPal or Stripe tips are also graciously accepted. Thanks for your support.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.