Does -Og work well?

Xi Ruoyao xry111@mengyan1223.wang
Mon Oct 11 19:21:24 GMT 2021


On Mon, 2021-10-11 at 19:15 +0000, Nick Savoiu wrote:
> Hmm, but if I need all these workarounds, the promise of -Og is
> unfulfilled.

I think there is no way to produce a "fast and debuggable" binary unless
there is some major progress on computer architectures.

If you are working on a serious software project, you should implement
and/or use a logging facility for debugging, instead of solely relying
on the debugger.

For one-file programs (for e.g. in competitions) -O0 -g is usually
enough for debugging.
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University


More information about the Gcc-help mailing list