Reputation: 106
I want to compile an application which contains float functions and variables,but I just do not want to produce float instructions in the binary.Can that be achieved by adding some flags in the cross compile tool chain gcc? Thanks in advnace.
Upvotes: 0
Views: 1418
Reputation: 28087
gcc can handle float operations without using fpu instructions via -mfloat-abi=soft
, see gcc's arm options.
However be careful that if you handle floating point via libraries, you need to either link them in static, or your target needs to provide same ones.
Upvotes: 1