mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: devnetfs <devnetfs@yahoo.com>
To: Keith Owens <kaos@ocs.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: compiling kernel with debug and optimization
Date: Mon, 10 Feb 2003 08:28:52 -0800 (PST)	[thread overview]
Message-ID: <20030210162852.55402.qmail@web20421.mail.yahoo.com> (raw)
In-Reply-To: <2721.1044876757@ocs3.intra.ocs.com.au>

Thanks for you reply Keith :)

The reason I asked this question is -- Distro's like RH (i guess it
holds for others too) DONT distribute kernels compiled with -g and
I was wondering why? 

Agreed about the compile-time+disk overhead, but that's ONE time
affair. Analyzing a system-core-dump of a "-g" built kernel (using
MCL's crash) is much easier and fruitful than otherwise.

so is it (just) the disk-space overhead that keeps distributions 
from NOT compiling with "-g" option?!

Thanks once again,

Regards,
A.



--- Keith Owens <kaos@ocs.com.au> wrote:
> On Mon, 10 Feb 2003 03:11:51 -0800 (PST), 
> devnetfs <devnetfs@yahoo.com> wrote:
> >Does compiling with -g option degrade performance? IMO it should
> NOT.
> 
> Compiling with -g slows down compilation and link, mainly because of
> the extra debugging data that has to be copied around.  -g
> significantly increases disk usage.
> 
> >If that's true, then why dont we compile kernels with both -g and
> -O2
> >always? Also does using -g AND -O2 cause some optimizations to be 
> >missed out?
> 
> With gcc, compiling with -g should have no effect on the kernel.  One
> of my occasional tests is to build vmlinux with and without -g, run
> both through strip -g and compare the results.  They should be
> identical except for the build timestamp.
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

  reply	other threads:[~2003-02-10 16:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-10 11:11 devnetfs
2003-02-10 11:32 ` Keith Owens
2003-02-10 16:28   ` devnetfs [this message]
2003-02-10 19:23 ` Pavel Machek
2003-02-12  5:20   ` devnetfs
     [not found] <20030210111151.31800.qmail@web20418.mail.yahoo.com.suse.lists.linux.kernel>
     [not found] ` <20030210192324.GA154@elf.ucw.cz.suse.lists.linux.kernel>
2003-02-11 11:11   ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030210162852.55402.qmail@web20421.mail.yahoo.com \
    --to=devnetfs@yahoo.com \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®