From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <85e3d8b346a5382cc4802d736b4cfa8f@plan9.bell-labs.com> From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] how small can you get MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sat, 9 Feb 2002 15:52:34 -0500 Topicbox-Message-UUID: 4f9a13e4-eaca-11e9-9e20-41e7f4b1d025 If you use the kernel config file below along with bzip2 compression, I think you can fit everything inside 160kb. g% strip < 9tiny | bzip2 -9 | wc -c 136003 g% strip < /sys/src/cmd/bzip2/8.bunzip2lite | wc -c 18928 g% That leaves 5000 bytes to do load-related stuff like jumping to the right address. If you meant 160*1024 bytes, you've got almost 9000 bytes left. That and bunzip2lite can be made smaller yet. It is way too long and ugly to post, but if you're interested mail me. Basically I took the bunzip2 code and replaced a bunch of macros with functions to get the code size down. There's still plenty of room for improvement. Russ dev root cons arch env pipe proc mnt srv dup rtc ether netif sd ns16552 link ether82557 pci misc archmp mp apic sdata pci sdscsi port int cpuserver = 0; boot local