Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2011 12:50:15 -0800
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r218713 - in head/sys/boot: common i386/boot2
Message-ID:  <AANLkTimNQzuructbFD9B02QzemWGhJX=M%2BJXQw2VY=zB@mail.gmail.com>
In-Reply-To: <201102152018.p1FKIqnZ042993@svn.freebsd.org>
References:  <201102152018.p1FKIqnZ042993@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 15, 2011 at 12:18 PM, Dimitry Andric <dim@freebsd.org> wrote:
> Author: dim
> Date: Tue Feb 15 20:18:52 2011
> New Revision: 218713
> URL: http://svn.freebsd.org/changeset/base/218713
>
> Log:
> =A0Apply a few small optimizations to boot2's code, to make it shrink a
> =A0little further. =A0This gets us further on the way to be able to build=
 it
> =A0successfully with clang. =A0Using in-tree gcc, this shrinks boot2.bin =
with
> =A060 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 byte=
s.

    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.
Thanks!
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimNQzuructbFD9B02QzemWGhJX=M%2BJXQw2VY=zB>