Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 1996 13:31:23 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        davidg@Root.COM, leisner@sdsp.mc.xerox.com
Cc:        freebsd-current@FreeBSD.ORG, jdli@linux.csie.nctu.edu.tw
Subject:   Re: make world with -fomit-frame-pointer
Message-ID:  <199602060231.NAA15216@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>I didn't read the message fully before I replied...
>>
>>-fomit-frame-pointer is something I've only seen in Linux.
>>
>>With -fomit-frame-pointer, you can't debug code...core dumps are
>>meaningless...Please don't do it!!
>>
>>The only place where it may be useful is in the kernel.

No, the debugging considerations are the same for the kernel, and the
improvement from -fomit-frame-pointer is less than for average programs
because the kernel does a lot of copying and waiting for cache misses,
and has lots of assembler routines that don't use the frame pointer
anyway.

>   We strip the symbol table from system utilities before installing them
>(making debugging impossible), so why do you think -fomit-frame-pointer will
>make things any worse in this respect?

The utilities are easy to reconstruct (perhaps even with full debugging
symbols) by recompiling the sources (provided the sources and the compiler,
etc., haven't been changed since the binaries were installed).

Same for the kernel.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602060231.NAA15216>