lkml.org 
[lkml]   [2008]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Building Kernel with -O0
Date
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.



\
 
 \ /
  Last update: 2008-09-10 13:47    [W:0.032 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site