|
|
Subscribe / Log in / New account

Shrinking the kernel with link-time garbage collection

Shrinking the kernel with link-time garbage collection

[Kernel] Posted Dec 15, 2017 22:41 UTC (Fri) by npitre

One of the keys to fitting the Linux kernel into a small system is to remove any code that is not needed. The kernel's configuration system allows that to be done on a large scale, but it still results in the building of a kernel containing many smaller chunks of unused code and data. With a bit of work, though, the compiler and linker can be made to work together to garbage-collect much of that unused code and recover the wasted space for more important uses.

Click below (subscribers only) for a detailed article from Nicolas Pitre on how to use link-time garbage collection to create a smaller kernel image.

Full Story (comments: 24)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds