[PATCH 2/2] Add option to use -Og
Sean Anderson
sean.anderson at seco.com
Mon Mar 14 16:36:54 CET 2022
On 3/11/22 9:25 PM, Simon Glass wrote:
> 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/ ?
What should be updated? As far as I can tell, optimization level is not
otherwise documented. IMO the Kconfig does a reasonable job of
documentation.
--Sean
More information about the U-Boot
mailing list