[PATCH 2/2] Add option to use -Og
Simon Glass
sjg at chromium.org
Sat Mar 12 03:25:08 CET 2022
On Tue, 22 Feb 2022 at 10:20, Sean Anderson <sean.anderson at seco.com> wrote:
>
> This adds support for using -Og when building U-Boot. According to the
> gcc man page:
>
> > -Og should be the optimization level of choice for the standard
> > edit-compile-debug cycle, offering a reasonable level of optimization
> > while maintaining fast compilation and a good debugging experience.
>
> This optimization level is roughly -O1 minus a few additional
> optimizations. It provides a noticably better debugging experience, with
> many fewer variables <optimized out>.
>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> ---
>
> Kconfig | 6 ++++++
> Makefile | 4 ++++
> 2 files changed, 10 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
But how about an update in doc/ ?
Regards,
Simon
More information about the U-Boot
mailing list