|ARM Technical Support Knowledge Articles|
If you build VFPv2 code with the option
--fpu=vfpv2 or target a processor based on ARM architecture v6 such as the ARM1176JF-S, the default option
--fpmode=std will only generate code that is sub-compliant to IEEE 754.
For functions that require VFP hardware support, and compliance with IEEE 754 (built with
model is one of:
ieee_no_fenv) VFP support code must be present.
In the RVDS installation path, you can find several examples that support different floating point modes, specified by the
The VFP support code is also included within the following directory:
For running a small test with IEEE 754 compliant VFPv2 code, you can simply use the example code directly, but before making any changes to the RVDS example code, make sure you create a backup copy:
build.batfile in the
vfp_supportfolder to generate the
.alibrary file for a later link step against your VFPv2 code
main.cfile with your own.
build.batfiles if necessary, with explicit
--fpuand optimization options.
Debug -> Processor Exceptions… - > Undefined—catch Undefined Instructions’ in RealView Debugger.
You can also find the application note in the RVDS installation folder.
Article last edited on: 2011-08-30 15:57:04
Did you find this article helpful? Yes No
How can we improve this article?