2013/2/25 Jeffrey Walton <noloa...@gmail.com>:
> Hi All,
>
> I read the relase notes on GCC 4.8
> (http://gcc.gnu.org/gcc-4.8/changes.html) and -Og caught my eye  (the
> bulleted item is below).
[deleted]
>
> What "n" does -Og correspond to for -O and -g (i.e., -O1, -O2; -g2, -g3)?
[deleted]
> Is -Og -g3 a valid combination to get the benefits of -Og with maximum
> symbol support? Is it even needed?
>
> Jeff
>

To my understanding, '-Og' selects optimization level 1
so that you can have fast compilation and a superior debugging experience.

You still need to use -g (or -g3, which is the option you normally use.)
to guide GCC output debug information.

Refer to following link for some -Og implementation detail:
http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00616.html


Best regards,
jasonwu

Reply via email to