From: Xi Ruoyao <xry111@mengyan1223.wang>
To: Nick Savoiu <savoiu@yahoo.com>, Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Does -Og work well?
Date: Tue, 12 Oct 2021 03:21:24 +0800 [thread overview]
Message-ID: <b59091dd0049127d0e57f7767ebf54f363d0ea24.camel@mengyan1223.wang> (raw)
In-Reply-To: <1596838943.716027.1633979713797@mail.yahoo.com>
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
next prev parent reply other threads:[~2021-10-11 19:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2132295523.836151.1633974475603.ref@mail.yahoo.com>
2021-10-11 17:47 ` Nick Savoiu
2021-10-11 18:07 ` Xi Ruoyao
2021-10-11 18:39 ` Jonathan Wakely
2021-10-11 19:15 ` Nick Savoiu
2021-10-11 19:21 ` Xi Ruoyao [this message]
2021-10-14 7:09 ` David Brown
2021-10-14 17:10 ` Nick Savoiu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b59091dd0049127d0e57f7767ebf54f363d0ea24.camel@mengyan1223.wang \
--to=xry111@mengyan1223.wang \
--cc=gcc-help@gcc.gnu.org \
--cc=jwakely.gcc@gmail.com \
--cc=savoiu@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).