An "-Og" Optimization Level For GCC

Written by Michael Larabel in GNU on 3 September 2012 at 09:56 AM EDT. 3 Comments
GNU
Compiler expert Richard Guenther of SUSE proposed introducing an "-Og" optimization level for GCC to enhance the debugging experience.

The -Og compiler optimization flag for the GNU Compiler Collection would be similar to -O1 and be more about enhancing the debug-ability of binaries as opposed to performing optimizations for speed. "This adds a new optimization level, -Og, as previously discussed. It aims at providing fast compilation, a superior debugging experience and reasonable runtime performance...It's a first cut, highlighting that our fixed pass pipeline and simply enabling/disabling individual passes (but not pass copies for example) doesn't scale to properly differentiate between -Og and -O[23]. -O1 should get similar treatment, eventually just building on -Og but not focusing on debugging experience."

While this optimization level was previously discussed amongst developers previously, no GCC developers have yet to comment on the -Og "RFC" that went out last month, so Guenther may end up shelving the idea for GCC 4.8 rather than pushing it into trunk.

The mailing list message concerning GCC -Og can be found on gcc-patches.
Related News
About The Author
Michael Larabel

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.

Popular News This Week