lkcd
[Top] [All Lists]

-g and -fomit_frame_pointer

To: lkcd@xxxxxxxxxxx
Subject: -g and -fomit_frame_pointer
From: Dave Anderson <anderson@xxxxxxxxxxx>
Date: Thu, 19 Jul 2001 08:56:50 -0400
Organization: Mission Critical Linux
Sender: owner-lkcd@xxxxxxxxxxx
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. :)

Has Hell frozen over yet?

I've so far been working only with a live kernel and I've never
applied the lkcd kernel patch so that I did not create Kerntypes.
No wonder I could not find Kerntypes! I instead rebuilt my kernel
with -g. Yeah, the file size became over 4MB which is no good for
an embedded system, but I am still in the development stage.

Does your embedded system use the vmlinux file?
I realize some non-x86 processors boot the vmlinux
file instead of a bzImage file -- is that true
with yours?

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)

BTW, what do you consider "tremendously"?  Has anybody
every published any hard numbers on this?  In any rough
testing we've done, the loss in performance is neglible,
i.e., in the low single-digit percentiles, if that.

Just wondering,
  Dave Anderson

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