Hi,
I am using MCUXpresso IDE v11.5
My application code uses floating point hardware whereas my library doesn't use floating point hardware.
When i compile the project, it gives an error that VFP registers used in application code but not in library code.
Is there any way to link these two different kind of libraries?
Thanks and best regards,
Prasanna Naik
> Is there any way to link these two different kind of libraries?
No.
The two kinds of floating point ABI are "hard" and "soft". The former passes parameters in FP registers, the latter in core registers, thus both are incompatible with each other.
Unless you are using a high amount of floating point calculation especially in tight loop, choose the "softfp" version of the library. It uses FP code and registers, but only core registers for parameter passing. The performance difference compared to "hard" is minimal.
HI prasannanaik
we must make sure application and lib have setting build settings.
Thanks,
Jun Zhang