Re: Patches for REALLY TINY 386 kernels

From: Matt Mackall
Date: Wed Jul 18 2007 - 16:41:27 EST


On Wed, Jul 18, 2007 at 10:10:43PM +0200, Andi Kleen wrote:
>
> I was waiting for someone to make that "point" ...
>
> >
> > Every byte you can shave off the compressed kernel image is another
> > byte you can use for userspace on your FLASH.
>
> Now let's see if that 1MB 386 contains any flash at all. Guesses?

I've certainly worked on such devices. I expect there are more of them
still in service, than, say, Voyagers.

I haven't looked at whether this CPUID stuff is worth the trouble, I'm
just responding to your argument about init code. Init code is
definitely not free. It takes up storage space, which can be extremely
valuable.

The deeper point is: if you know what your platform is, platform
feature detection is a waste of code, regardless of whether it's
marked init or not.

--
Mathematics is the supreme nostalgia of our time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/