Is it possible to turn off the gcc optimization when compiling kernel?

Hao Lee haolee.swjtu at gmail.com
Tue Mar 22 07:46:23 EDT 2016


On Tue, Mar 22, 2016 at 7:35 PM, Nicholas Mc Guire <der.herr at hofr.at> wrote:
> yes - but for any given code you will find that many of those
> options actually have no effect for the particular code blob.
> The set of flags effectively impacting the generated object
> file is generally much smaller than the ones reported by
> gcc -c -Q -O1 --help=optimizers.
>
> thx!
> hofrat

yeah,only several options take effect.
Because "-O0" will break the link progress,I just want use "-O1" and
some other options to approximate the effects of "-O0".

regards,
Hao Lee



More information about the Kernelnewbies mailing list