RPI2 performance comparison using LINPACK

Ian Lepore ian at freebsd.org
Sun May 17 00:24:39 UTC 2015


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 <progname>" 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




More information about the freebsd-arm mailing list