On Tue, Mar 22, 2016 at 7:35 PM, Nicholas Mc Guire 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 rep
On Tue, Mar 22, 2016 at 07:24:38PM +0800, Hao Lee wrote:
> On Mon, Mar 21, 2016 at 5:51 PM, Nicholas Mc Guire wrote:
> > You can not turn it off in all functions as some need particluar
> > optimization flags to comile at all, but you can pass
> > individual CFLAGS per file via the Makefile
> >
>
On Mon, Mar 21, 2016 at 5:51 PM, Nicholas Mc Guire wrote:
> You can not turn it off in all functions as some need particluar
> optimization flags to comile at all, but you can pass
> individual CFLAGS per file via the Makefile
>
> CFLAGS_target.o = -O0 or -flags-to-use
>
> aswell as remove specifi
On Sun, Mar 20, 2016 at 02:46:41PM +0800, Hao Lee wrote:
> Hi,
> When I am debugging the linux kernel, I find that the execution
> sequence of some code is very strange. I think I need to turn off gcc
> optimization by changing "-O2" to "-O0". But I encounter many errors.
> So, I want to know is i
Hi,
When I am debugging the linux kernel, I find that the execution
sequence of some code is very strange. I think I need to turn off gcc
optimization by changing "-O2" to "-O0". But I encounter many errors.
So, I want to know is it possible to turn off the gcc optimization or
how can I compile so