cancel
Showing results for 
Search instead for 
Did you mean: 

Using Touch GFX with Hardware Floating Point Unit but another module uses SW/HW floating point.

RBazi
Associate

I am integrating Tough GFX into my Application and I have observed in order to get it to compile I have had to use hardware floating point (-mfloat-abi=hard) but another modile library requires SW/HW floating point. (mfloat-abi=softfp). I want to know if I can use Touch GFX using SW/HW floating point (mfloat-abi=softfp).

If there a way to use bot in a project. The Touch GFX is using C++ while the other module us using C. But need some help here.

2 REPLIES 2
Ozone
Lead

The options softfp and hardfp relate to the mode the arguments are passed, and incompatible with each other.

The options soft and softfp would be compatible, and could be linked to one application.

> ... I have observed in order to get it to compile I have had to use hardware floating point (-mfloat-abi=hard) ...

Why is that ?

I have experienced very little differences in runtime between hardfp and softfp.

> The Touch GFX is using C++ while the other module us using C.

This should not make a difference in regard to FPU options.

RBazi
Associate

I managed to find the problem. I was using libtouchgfx-float-abi-hard.a in the library settings. I simply changed it to libtouchgfx.a where you can use the SW/HW mixture FPU.