When the C code of Example 12 is compiled with the command-line options --cpu
5TE and --fpu softvfp, the compiler produces
machine code with the disassembly shown in Example 13. In Example 13, floating-point arithmetic is performed
in software through calls to library routines such as __aeabi_fmul.
Example 13. Support for floating-point arithmetic
in software
However, when the C code of Example 12 is compiled with the command-line option --fpu vfp,
the compiler produces machine code with the disassembly shown in Example 14. In Example 14, floating-point
arithmetic is performed in hardware through floating-point arithmetic
instructions such as VMUL.F32.
Example 14. Support for floating-point arithmetic
in hardware
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.