This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Qeustion about the optimize option


Victor <vic7tor@gmail.com> writes:

> I want to build the linux kernel at O0 optimize level. The first problem
> that I face was something about constant.

You will face many other problems once you solve that one.  This is not
a gcc issue; the Linux kernel source code is written such that it must
be compiled with optimization in order to work correctly.

> Because I want to debug the linux kernel, how can compile the test
> program above don't use O1 O2 O3.

You can debug code compiled with optimization, it's just more annoying.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]