svn commit: r218713 - in head/sys/boot: common i386/boot2

Garrett Cooper gcooper at
Tue Feb 15 20:50:17 UTC 2011

On Tue, Feb 15, 2011 at 12:18 PM, Dimitry Andric <dim at> wrote:
> Author: dim
> Date: Tue Feb 15 20:18:52 2011
> New Revision: 218713
> URL:
> Log:
>  Apply a few small optimizations to boot2's code, to make it shrink a
>  little further.  This gets us further on the way to be able to build it
>  successfully with clang.  Using in-tree gcc, this shrinks boot2.bin with
>  60 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 bytes.

    I recently had the pleasure of looking at this code, and I think
that this could be shrunk down further but it would require a
functional change as to how things work with loader.conf, etc. I'll
hash out the ideas on arch@ I had in mind after I let them stew a bit
longer, but I think that boot[2] could be simplified more.

More information about the svn-src-all mailing list