Re: empty function optimizations

From: Philipp Rumpf (prumpf@uzix.org)
Date: Mon Jul 10 2000 - 07:42:26 EST


On Sat, Jul 08, 2000 at 09:50:38PM +0200, Geert Uytterhoeven wrote:
> My idea was to replace empty and most simple functions by predefined dummy(),
> dummy_zeros(), dummy_ones() and dummy_einval() functions, so they appear only
> once in a kernel image. But is it worth the effort? Note that you don't compile
> all code into your favorite kernel image, only the parts you need for your
> hardware, so you won't catch all empty functions at once.

This really should be a gcc/ld thing. If/when we moved to -ffunction-sections,
all that would be required is a "merge identical read-only ELF sections"
option to ld (or a standalone hack to do the same thing).

        Philipp Rumpf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:11 EST