All of lore.kernel.org
 help / color / mirror / Atom feed
* Is it possible to turn off the gcc optimization when compiling kernel?
@ 2016-03-20  6:46 Hao Lee
  2016-03-21  9:51 ` Nicholas Mc Guire
  0 siblings, 1 reply; 5+ messages in thread
From: Hao Lee @ 2016-03-20  6:46 UTC (permalink / raw)
  To: kernelnewbies

Hi,
When I am debugging the linux kernel, I find that the execution
sequence of some code is very strange. I think I need to turn off gcc
optimization by  changing "-O2" to "-O0". But I encounter many errors.
So, I want to know is it possible to turn off the gcc optimization or
how can I compile some functions without optimization.
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-22 11:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-20  6:46 Is it possible to turn off the gcc optimization when compiling kernel? Hao Lee
2016-03-21  9:51 ` Nicholas Mc Guire
2016-03-22 11:24   ` Hao Lee
2016-03-22 11:35     ` Nicholas Mc Guire
2016-03-22 11:46       ` Hao Lee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.