Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2000 07:06:57 +0700 (ALMST)
From:      Boris Popov <bp@butya.kz>
To:        Neil Blakey-Milner <nbm@mithrandr.moria.org>
Cc:        arch@FreeBSD.org
Subject:   Re: Conditionally removing cosmetic messages for small kernels (PICOBSD).
Message-ID:  <Pine.BSF.4.10.10007180652010.78682-100000@lion.butya.kz>
In-Reply-To: <20000717152514.A2056@mithrandr.moria.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 17 Jul 2000, Neil Blakey-Milner wrote:

> While building a PicoBSD disk for work purposes, I noticed that
> pcisupport.c was the largest object file sitting there, at 43k.
> 
> By removing (#ifndef PICOBSD, better names accepted) the cosmetic probe
> messages, I managed to reduce that to 23k easily enough, buying me a few
> more executables (and NTFS support, which was why I was building the
> disk).

	This is also related to the identcpu.c and i686_mem.c files. While
building a very small kernel (nanobsd :) for i486 based system I've noted
that i686_mem.c compiled always regardless of 'cpu' keyword in the config
file (why one need it on 486...). Similarly, identcpu.c code can reduced
by excluding probes and corresponding messages for Pentiums if one needs
only i486 support.

	A more general question: should we allow more options to exclude
optional and obsolete parts of the kernel ? For example, I've ripped out
aout, aio and jail related code without any effect on functionality for my
particular system.

--
Boris Popov
http://www.butya.kz/~bp/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10007180652010.78682-100000>