In article <20000404085529.790423C970@elph.research.canon.com.au> you wrote:
> Arjan van de Ven writes:
>> Have you actually tested that the kernel image got smaller? I have tried
>> some of this with the /net code, and it didn't make any difference at all,
>> because the compiler/linker removed the unused function automatically.
>> (Maybe this is because the /net code is linked into an .a file).
> It's because the /net Makefiles go to some trouble to only include the objects
> that you need, based on your CONFIG_ choices. It won't eliminate functions
> like /proc support stuff when compiled without CONFIG_PROC_FS though.
Actually, it does. I have seen it happen. Either the compiler or the linker
(when making the .a file) removes unused functions in the networking code.
I don't know if the codesize difference is also 0 when not using an ".a"
file, but for the parts of the kernel that still use .a files, the #ifdef's
are not needed.
Greetings,
Arjan van de Ven
-
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 : Fri Apr 07 2000 - 21:00:11 EST