I'm using Cortex-A8 processor and I'm not understanding how to use the -mfpu
flag.
On the Cortex-A8 there are both vfpv3 and neon co-processors. Previously I was not knowing how to use neon so I was only using
gcc -marm -mfloat-abi=softfp -mfpu=vfpv3
Now I have understood how SIMD processors run and I have written certain code using NEON intrinsics. To use neon co-processor now my -mfpu flag has to change to -mfpu=neon
, so my compiler command line looks like this
gcc -marm -mfloat-abi=softfp -mfpu=neon
Now, does this mean that my vfpv3
is not used any more? I have lots of code which is not making use of NEON, do those parts not make use of vfpv3
.
If both neon and vfpv3 are still used then I have no issues, but if only one of them is used how can I make use of both?