lkcd
[Top] [All Lists]

Re: Module support

To: Dave Anderson <anderson@xxxxxxxxxxx>
Subject: Re: Module support
From: "Matt D. Robinson" <yakker@xxxxxxxxxxxxxx>
Date: Wed, 18 Jul 2001 14:21:50 -0700
Cc: lkcd@xxxxxxxxxxx
Organization: Alacritech, Inc.
References: <OF2774E48E.8BE7B288-ONC1256A8D.004CC6CA@xxxxxxxxxx> <3B55F39A.39F00B65@xxxxxxxxxxxxxx> <3B55F83C.3D2166E5@xxxxxxxxxxx>
Sender: owner-lkcd@xxxxxxxxxxx
Dave Anderson wrote:
> 
> Most people won't put up with building their entire kernel -gstabs.
> If that were the case, we would have done that a long time ago.  I
> think it would be _GREAT_ to have that, but most people gag on the
> idea of putting all symbols into the kernel, as it creates huge
> kernels.
> 
> I've never quite understood this.  We build our kernels
> with -g for the whole kernel, and to be sure, it
> creates a much larger vmlinux file -- maybe on the
> order of 4 times as large.  But what gets loaded
> into the bzImage file, and subsequently into memory,
> hardly changes at all.  In fact, if you also delete
> -fomit_frame_pointer along with adding -g, the kernel
> is actually smaller! (I'm guessing because of less
> aggressive in-lining?).

You omit the frame pointer because it takes an extra register
on x86 systems, which can slow the machine down tremendously
(it has to do more with fewer registers).

> Am I missing something here?
> 
> Dave Anderson

No, you're not missing the point.  People just don't like to see
large kernels.  Trust me, I'd like to see -gstabs as a default
for all systems, but Linus gagged on the idea about two years
ago when I asked.  Maybe things are different now ... Heh. :)

Nice to see you again, Dave ... it's been a while. :)

--Matt

<Prev in Thread] Current Thread [Next in Thread>