Subject: Re: Small kernel...
To: NetBSD User's Discussion List <netbsd-users@NetBSD.ORG>
From: Jasper Wallace <jasper@pointless.net>
List: netbsd-users
Date: 09/20/2001 15:48:59
-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 20 Sep 2001, Greg A. Woods wrote:

[snip]
> Here's the result of an i386 build without any networking or drivers
> except for com, fdc, wdc, and the old pccons:
>
> 	text    data    bss     dec     hex     filename
> 	520498  18012   62804   601314  92ce2   MINISCULE/netbsd
[snip]
> pc0     at isa? port 0x60 irq 1         # pccons is much smaller than wscons!

would it work without pccons and just use a serial console?

and if it's an embedded system running off of flash you could probably drop
fdc & fd0 too.

arch/i386/conf/std.i386 has EXEC_AOUT and EXEC_ELF32, so you can just use
ELF...

that gets us to:

text    data    bss     dec     hex     filename
503178  19148   58676   581002  8dd8a   netbsd

Which isn't much of an improvement :-(

The routing code (rtsock.c, route.c, radix.c) is getting included, can we live
without it since we don't have networking?

and if.c, if_media.c, and sha1 in libkern (and other stuff).

- -- 
When Ted's fixing your computer at a quarter past one, eat your
Whopper  with cheese in his face. He functions better when he's
slightly dizzy from hunger.
[see: http://sysday.tripod.com/time.htm]           [0x2ECA0975]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iQEVAwUBO6oB3gCB+Qwuygl1AQEH5wgAhtFXPyNWmgsT7pG2j7S3PnWDlTIfkAV2
FMpbJKQvYFAGl+vCNaTx0mPzaRe5uOtDZqpB8NgBXiPplH63c8dlJdIBTxe4/9L0
86GQFnY5/JPB9e3LUEviR0z++jwHJaEhd/TZucvmoahRcReowKRkyQX9J4BYfPPN
jALdH0tQK1IHdc+o4/ZBQKbbqQWAlCy/qe/wdI2j4kGI8ApQWXqEHk22NlEMdrSW
3ZtgiZpfQ67Hql8+tpTOBmelRbI5sS1+v9wXloQsqEYl/siQ7/wQU3AeVDxTngm5
MJI4HsDsKMpSKE0Dn4jhHiysOnL6AFbs75AfaNsFnKANgK20b3iwgA==
=qpgW
-----END PGP SIGNATURE-----