From owner-svn-src-head@FreeBSD.ORG Tue Feb 15 20:50:17 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E7A6106564A; Tue, 15 Feb 2011 20:50:17 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id B80A28FC13; Tue, 15 Feb 2011 20:50:16 +0000 (UTC) Received: by wwf26 with SMTP id 26so607115wwf.31 for ; Tue, 15 Feb 2011 12:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2e2ydZMd8CW4U1+A4LLKQbUgP6qiRd63d8POUt7dcgg=; b=R4kzAAAR0EAyew/+E0uTCosoE4pPDwFLG1YFuYYj7p/7Ea7pRwgJwSjj0PPuFr/reK V7aWo+55KZIkq4/RTFNU1KalLXNVrWdkaXCuYrgagtztbiysIk5zNBcd2Vk1oK516eN2 /aO27UizCQflKF/GLgcOq+1Zta/XE5dfsf0Zs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=qs8xRw4wDbiBbTGURT4OPXLRmmHZZa/pBWlvSfIYUxIL4MBWnPb1Z0GP96rsoTdXmd 4g+tfm/a31F6+AqmIMJDITaouAz5oh1U8moXRJ1Gq0HJZk8N53WHVBY6oIW091j3Vk+V +mDrMOHMS87hgedR4ZtnxuNPQggSi6L2kjQHk= MIME-Version: 1.0 Received: by 10.216.63.138 with SMTP id a10mr2217944wed.27.1297803015518; Tue, 15 Feb 2011 12:50:15 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.71.200 with HTTP; Tue, 15 Feb 2011 12:50:15 -0800 (PST) In-Reply-To: <201102152018.p1FKIqnZ042993@svn.freebsd.org> References: <201102152018.p1FKIqnZ042993@svn.freebsd.org> Date: Tue, 15 Feb 2011 12:50:15 -0800 X-Google-Sender-Auth: MHhy3-MSSdiVYHeB2LDcFLzpl5A Message-ID: From: Garrett Cooper To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 20:50:17 -0000 On Tue, Feb 15, 2011 at 12:18 PM, Dimitry Andric 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