Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: Building Kernel with -O0 | Date | Wed, 10 Sep 2008 13:52:45 +0200 |
| |
linux-os (Dick Johnson) <linux-os@analogic.com> wrote:
> If you have to single-step through kernel procedures, you > are not writing proper code for a kernel. Furthermore, even > when using the kernel debugger, you are not executing the > exact same path that would be executed without the debugger > attached.
I sometimes single-step in order to verify my (userspace) code, instead of just throwing random test data at it. It's easier and makes me feel better. OTOH, -O2 never was a problem if I used it, so I don't strongly vote for enabling -O0.
| |