Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22000

Does compiling with -g, in itself, degrade performance? [duplicate]

$
0
0

(This is a question about gcc and clang, but might apply to other compilers.)

If I compile my C or C++ code, and generate debug info using the -g switch, does this in itself degrade performance of the compiled program in any way...

  1. With minimum optimization (-O0)?
  2. With maximum optimization (-O3)?

Note: I don't mean the performance penalty of having to parse/load the executable, which is larger due to the extra content; I mean the code that's run.


Viewing all articles
Browse latest Browse all 22000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>