This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Qeustion about the optimize option
- From: Ian Lance Taylor <iant at google dot com>
- To: Victor <vic7tor at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 May 2011 07:36:44 -0700
- Subject: Re: Qeustion about the optimize option
- References: <1305009910.3717.11.camel@localhost.localdomain>
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