Re: compiling kernel with debug and optimization

From: devnetfs (
Date: Wed Feb 12 2003 - 00:20:56 EST

--- Pavel Machek <> wrote:
> Hi!
> > Does compiling with -g option degrade performance? IMO it should
> > NOT.
> > If that's true, then why dont we compile kernels with both -g and
> > -O2 always?
> Build with -g takes *a lot* of diskspace, like 1Gig.
> Pavel

Agreed. But can't distro's give two SET's of RPMS:
   1. kernel-xyz.rpm
   2. kernel-xyz-debug.rpm

where both 1,2 are same kernels compiled w/ same config and with -g.
BUT rpm [1] is a 'strip -g' output of [2].

So people run [1] on their production systems. And developers analyze
core-dump from these systems using [2]. Can this be done and will it

Thanks in advance,


ps: Please Cc: me the reply. I am not subscribed to the list.

Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:38 EST