Qeustion about the optimize option
Ian Lance Taylor
iant@google.com
Tue May 10 14:37:00 GMT 2011
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
More information about the Gcc-help
mailing list