[Removed uclinux-dev from the CC line cause that's a subscriber-only list and I can't be bothered with subscribing to each and every list on this planet. Cross posting between a closed list and other lists is considered rude, http://www.arm.linux.org.uk/armlinux/mletiquette.php#e10 ]
On Mon, Feb 14, 2005 at 03:27:59PM +0530, Megharaj Sholapur wrote:
On Mon, 2005-02-14 at 15:17, Erik Mouw wrote:
On Mon, Feb 14, 2005 at 01:41:27PM +0530, Megharaj Sholapur wrote:
How to use it to descrease the size of library?
Compile with -Os and without -g.
Ya, compiled with -Os only but still want to reduce the size of the kernel image.
The kernel is not a shared library nor does it use a shared library, so library Optimizer is useless on the kernel.
You should enable EMBEDDED (General setup --> Configure standard kernel features), remove all unneccessary stuff. "find . -name Kconfig | xargs grep EMBEDDED" will tell you more about options that depend on EMBEDDED. Another good one to remove is the many IO schedulers (Device drivers --> Block Devices --> IO Schedulers).
You might want to look at the linux-tiny project -
http://www.selenic.com/tiny-about/
I haven't played with it too much, but its on my list of "Things to use to get my old 386 running Linux."
Jim
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/