Date: Fri, 28 Feb 2014 13:14:49 +0800 From: Julian Elischer <julian@freebsd.org> To: arch@FreeBSD.org Subject: Re: small kernel kernel option... Message-ID: <53101B49.2010400@freebsd.org> In-Reply-To: <20140226214816.GB92037@funkthat.com> References: <20140226214816.GB92037@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/27/14, 5:48 AM, John-Mark Gurney wrote: > I'm about to commit a change to sha256 to speed it up, but the cost > of that speed up is an increase in code/data size from just under 1k > to almost 9k (as measured on amd64)... this increase is from unrolling > a loop.. > > Maybe we should have a global kernel option, SMALL_KERNEL, or something > similar that can be used to shrink code size for those that are trying > to build small embedded devices... > > Or do we already have this option, but I just don't know about it? > > I know 8k isn't much, but, a billion here and a billion there and pretty > soon you're talking about real money.. :) > > Comments? > it's the same as the old "space vs time" optimisations in UFS. maybe "OPTIMIZE_FOR_SPACE" vs "OPTIMIZE_FOR_SPEED"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53101B49.2010400>