lkml.org 
[lkml]   [2000]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectkernel compiled with frame pointer
Hi,
While writing kernel code what is the correct way to find out if the
kernel is being compiled with frame pointer?

Is the following code correct?

#ifdef CONFIG_FRAME_POINTER
code assuming frame pointer
#else
code assuming no frame pointer

The top level Makefile that comes with the standard kernels (the ones
which can be downloaded from kernel.org etc.) adds -fomit-frame-pointer to
CFLAGS by default and it does not have something like

ifdef CONFIG_FRAME_POINTER
CFLAGS += -fomit-frame-pointer
endif

Is CONFIG_FRAME_POINTER a part of some external patch?
If yes, then is there a way to find the above in the standard
kernels?

What about CONFIG_KDB_FRAMEPTR? Is it correct to use this in a standard
kernel to find whether the kernel is being compiled with frame pointer?

Thanks and Regards,
Sushil.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.056 / U:4.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site