We can. Graham Stoney had all this going against 2.2. See
http://www.google.com/search?q=stoney+ffunction-sections&hl=en&start=10&sa=N
http://www.cs.helsinki.fi/linux/linux-kernel/Year-2000/2000-29/0415.html
> What I'd much rather see if this is an issue is:
>
> bool 'Do you want to customise for a very small system'
>
> _IF_ the linker can remove things, it would simplify this too --- we
> could if a few important places produce code slightly differently to
> favour speed over size and not reference various things. Also, the
> above option would turn-off inlining as that seems to makie quite a
> difference at times (BTW, I'm not sure about this, but it seems gcc
> and C99 don't agree with static/extern inline semantics?)
The kernel doesn't link when you compile with -fno-inline because of all
the `extern inline' qualifiers. These need to be converted to `static
inline'. Jim Houston has a script which does this. See
http://www.uwsg.iu.edu/hypermail/linux/kernel/0201.3/0888.html
It would be rather good if we could get that script run across the
tree - no-inline has its uses at times.
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/