From owner-freebsd-arm@FreeBSD.ORG Sun May 17 00:24:39 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6D966A6 for ; Sun, 17 May 2015 00:24:39 +0000 (UTC) Received: from pmta2.delivery4.ore.mailhop.org (pmta2.delivery4.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id A5BCD1770 for ; Sun, 17 May 2015 00:24:39 +0000 (UTC) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sun, 17 May 2015 00:24:32 +0000 (UTC) Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t4H0OVZ9011197; Sat, 16 May 2015 18:24:31 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1431822271.91685.43.camel@freebsd.org> Subject: Re: RPI2 performance comparison using LINPACK From: Ian Lepore To: Erik Moe Cc: freebsd-arm@freebsd.org Date: Sat, 16 May 2015 18:24:31 -0600 In-Reply-To: <1B7FC791-3DEE-4310-8BE0-BBB3C8E34C78@rcn.com> References: <1B7FC791-3DEE-4310-8BE0-BBB3C8E34C78@rcn.com> Content-Type: text/plain; charset="iso-8859-13" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 May 2015 00:24:39 -0000 On Sat, 2015-05-16 at 18:14 -0500, Erik Moe wrote: [...] > > The FreeBSD results were very similar to Linux as long as it was compiled with "-mfloat-abi=softfpˇ and the cpu is running at the full 900Mhz. I tried to compile the Linux version of LINPACK using "-mfloat-abi=softˇ, but got the error "linpack uses VFP register arguments, /tmp/cc24nslQ.o does notˇ, so I assume that it doesn˙t support a soft floating-point implementation. FreeBSD must default to "-mfloat-abi=softˇ. Raspbian must default to "-mfloat-abi=hardˇ because that˙s the only option that would work neither "-mfloat-abi=softˇ or -mfloat-abi=softfpˇ would link. Will hard float work for FreeBSD if I compile with "TARGET_ARCH=armv6hfˇ? > > Erik If you do "make " it gets built with system default options, which include softfp. If you do "cc ..." you get exactly the options you put on the command line. If your overall system is built as TARGET_ARCH=armv6hf instead of armv6 then hardfloat is the default whether you use make or cc directly. -- Ian