For a variety of reasons, such as low power consumption and encapsulation limitations, some of the previous ARM architecture processors are expensive to add to floating-point units because of their internal resources , because of the need for additional software implementations. With the development of technology, the current high-end ARM processor has the ability to perform floating-point operations . This difference between the old and new architectures results in two different embedded application binary interfaces (Eabi)-soft floating-point and vector floating-point (VFP). But soft floating-point (soft float) and hard float (hard float) have the ability to be forward compatible without backward compatibility , that is, a soft floating-point binary interface (Eabi) is still available for the current high-end ARM processor . FPU Unit
In the ARM architecture kernel, some have floating-point units (FPU), and some do not. Armel and ARMHF are not available for the FPU kernel. In the case of a FPU, you can specify which one to use with the GCC option-mfloat-abi, with the following three values: soft: No FPU calculations, even with FPU floating-point units. Armel: also namely SOFTFP, uses the FPU computation, but passes the parameter to pass through the ordinary register, such interrupts, only then must save the ordinary register, the interrupt load is small, but the parameter needs to convert to the floating-point computation. ARMHF: also known as hard, with FPU calculation, passing parameters with the floating point register in the FPU, eliminating the best conversion performance, but high interrupt load.
When kernel, ROOTFS and app are compiled, the specified must be consistent.
Using the SOFTFP mode, there are unwanted floating-point to integer, integer to floating-point conversions. Using the hard mode, the average saves 20 CPU cycles per floating-point correlation function call. For the architecture of ARM, which is important for every cycle, such an upgrade is certainly huge.
With no change in the source code and configuration, in some applications, although ARMHF is a bit higher than the Armel hardware requirements (specifically the FPU hardware), ARMHF can get 20-25% performance improvements. For some programs that are heavily dependent on floating-point operations, they can achieve a performance improvement of 300%. Armel and ARMHF
Before Eabi, Armel (low-end arm hardware, which supports armv4 above), floating-point arguments must first pass through an integer register and then to a floating-point unit of operations before performing floating-point operations. The new Eabi, or ARMHF, optimizes the calling convention for floating-point operations by passing parameters directly to floating-point registers.
Compared to the familiar ARMEL,ARMHF represents another incompatible binary standard. With the support of some communities, ARMHF has been developing very much now. Like Ubuntu, it has been planned to discard Armel in later releases, instead supporting the ARMHF compiled version. As is still very hot in raspberry Pi (ARM11), because Ubuntu only supports ARMV7 architecture compilation, Raspberry Pi will not be able to directly install the Ubuntu system. While BB Black (CORTEX-A8) and Cubietruct (CORTEX-A7) also support Ubuntu Armel and ARMHF compilation. install Armel and ARMHF
The above is the comparison between Armel and ARMHF. I believe you should have a general understanding of the. Under the Ubuntu system, how to install two kinds of cross compiler according to the requirement respectively. installation of Arm-linux-gnueabi
sudo apt-get install Gcc-arm-linux-gnueabi
Download by operation, there is nothing to say.
installation of ARM-LINUX-GNUEABIHF
Two methods, Linaro Open source organization has related cross tool chain download, click to enter the Web page select download can, address: https://launchpad.net/linaro-toolchain-binaries. To the Site tool chain page download, address: HTTP://WWW.VERYARM.COM/ARM-LINUX-GNUEABIHF-GCC.
Then you extract it into your custom directory and add the bin environment variable. ARMHF Use
The ARMHF requires hardware support and requires ARMV7 CPUs, Thumb-2 instruction sets, and vfp3d16 floating-point processors on a Debian wiki.
On the compilation parameters of GCC, use -mfloat-abi=hard-mfpu=vfp .
On the tool, Codesourcery first supported the hard mode. Alternatively, you can already compile the tool chain yourself.