From owner-freebsd-arch@FreeBSD.ORG Wed Jul 10 06:54:09 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 442BEF4A; Wed, 10 Jul 2013 06:54:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 032BB17EE; Wed, 10 Jul 2013 06:54:08 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::f9f8:ee16:c79c:c973] (unknown [IPv6:2001:7b8:3a7:0:f9f8:ee16:c79c:c973]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E0C735C43; Wed, 10 Jul 2013 08:54:05 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Adding a MACHINE_ARCH note From: Dimitry Andric In-Reply-To: Date: Wed, 10 Jul 2013 08:54:05 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <20130709090744.0e497e7e@bender.Home> <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> <20130709234837.559e3769@bender.Home> To: Peter Wemm X-Mailer: Apple Mail (2.1508) Cc: Adrian Chadd , freebsd-arch@freebsd.org, Baptiste Daroussin , Andrew Turner X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 06:54:09 -0000 On Jul 10, 2013, at 03:08, Peter Wemm wrote: > On Tue, Jul 9, 2013 at 5:56 PM, Adrian Chadd wrote: >> ... boy I'd like to see this particular x86 hiccup fixed before this >> stuff is mainstream. > > I'm not entirely sure how much support there is behind "x32". I don't > know if its much more than an academic curiosity or if there's real > demand for it. It seems to be driven by Intel and Google. The idea is that for some applications (or maybe even most :), an ILP32 model will perform better. Quoting from one of the presentations: On Core i7 2600K 3.40GHz: - Improved SPEC CPU 2K/2006 INT geomean by 7-10% over ia32 and 5-8% over Intel64. - Improved SPEC CPU 2K/2006 FP geomean by 5-11% over ia32. - Very little changes in SPEC CPU 2K/2006 FP geomean, comparing against Intel64. - Comparing against ia32 PIC, x32 PIC: - Improved SPEC CPU 2K INT by another 10%. - Improved SPEC CPU 2K FP by another 3%. - Improved SPEC CPU 2006 INT by another 6% - Improved SPEC CPU 2006 FP by another 2%. As to how often it is actually used in practice, I am not sure. > gcc-4.8 and clang have it, or have patches for it. You also need a fairly recent binutils. And kernel + libc support... It is probably not a trivial task. :-) -Dimitry