(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...
- With minimum optimization (
-O0
)? - 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.