[lkml]   [2002]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does
    Chris Wedgwood wrote:
    > On Thu, Jan 31, 2002 at 11:24:10PM +0000, Alan Cox wrote:
    > Because 100 4K drivers suddenly becomes 0.5Mb. There are those of
    > us trying to stuff Linux into embedded devices who if anything
    > want more configuration options not people taking stuff out.
    > Well, I'm more or less in agreement here, especially when working with
    > small embedded devices which have a few (say 16 or 32) MB of RAM for
    > EVERYTHING, kernel, userspace AND filesystems.
    > However, I wonder if we can't have the linker remove unnecessary and
    > unreferences objects, functions and variables?

    We can. Graham Stoney had all this going against 2.2. See

    > 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

    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
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:23    [W:0.032 / U:45.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site