Two different library linking process in MCUXpresso IDE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Two different library linking process in MCUXpresso IDE

1,185件の閲覧回数
prasannanaik
Contributor III

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

0 件の賞賛
返信
2 返答(返信)

1,175件の閲覧回数
frank_m
Senior Contributor III

> 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.

0 件の賞賛
返信

1,180件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

HI prasannanaik 

we must make sure application and lib have setting build settings.

Thanks,

Jun Zhang

0 件の賞賛
返信