Wednesday, January 4, 2012

Disable Optimization for Some Files in the Kernel

goto the directory... edit the Makefile

add a line:
CFLAGS_page_alloc.o = -O0

this line disables any optimization for the given file (page_alloc.c in this case)

3 comments:

  1. Hi..

    Is there a way to disable optimization for an entire module?

    ReplyDelete
  2. Not possible.
    See http://www.stlinux.com/devel/debug/jtag/build

    ReplyDelete