From owner-freebsd-current@FreeBSD.ORG Fri Nov 21 13:07:58 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8A5249F1 for ; Fri, 21 Nov 2014 13:07:58 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CE92D91 for ; Fri, 21 Nov 2014 13:07:57 +0000 (UTC) Received: from [192.168.0.106] (cpc14-cmbg15-2-0-cust307.5-4.cable.virginm.net [82.26.1.52]) (authenticated bits=0) by theravensnest.org (8.14.9/8.14.9) with ESMTP id sALD7lX2051073 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 21 Nov 2014 13:07:49 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: theravensnest.org: Host cpc14-cmbg15-2-0-cust307.5-4.cable.virginm.net [82.26.1.52] claimed to be [192.168.0.106] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH]: further shrinking of boot2 From: David Chisnall In-Reply-To: <20141121125632.GA23706@vlakno.cz> Date: Fri, 21 Nov 2014 13:07:43 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20141121125632.GA23706@vlakno.cz> To: Roman Divacky X-Mailer: Apple Mail (2.1878.6) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 13:07:58 -0000 Fir the clang 3.4 import, I had some patches (that never got applied), = which used clang -O0 and then opt with some custom optimisation order to = get a reasonable size saving. It might be worth trying that, so that = future changes to the default optimisation order don't make things worse = again. David On 21 Nov 2014, at 12:56, Roman Divacky wrote: > Hi all! >=20 > In an effort to help import clang3.5 I looked at squeezing a few more = bytes > from boot2. >=20 >=20 > http://rys.vlakno.cz/~rdivacky/boot2.diet.patch >=20 >=20 > Please test and review the patch. It survived my qemu boot attempt so = it's > not completely broken. But I would like to have some more testing and = review > comments before I move forward with this. >=20 > Fwiw, it shrinks boot2 by 16 bytes when compiled with clang34 and by = 28 bytes > when compiled with clang35. >=20 > Thanks! Roman > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"