Regarding the floating point flag used when compiling the application for the purpose of the hand

Recently, I wrote c applications for the purpose of a hand. To cross-compile the application for the purpose of the hand, there was a flag -mfloat-abi=hardthat should have been used. But I did not understand what this means. Can someone explain what the flag means. What changes will it make when compiling the application?

+4
source share
2 answers

Take a look at the documentation :

-mfloat-abi=name, ABI . : "soft", "softfp" "hard". " GCC , ." Softfp" , - soft-float. 'Hard FPU.

. , ABI ; ABI .

, hard . soft , FP .

, softfp , soft ( ABI), FP , FP, .

soft softfp , ABI, . hard , .

? , . ABI , . -, ABI .

, soft ABI, , , , FP, softfp , .

+3

. ARM , ( , ) ( . ). , FPU , , :

  • Hard-float: , , FP FPU. , FPU, , , .

  • Soft-float: , 32- 64- . callle FPU, , , , . , FPU ( ).

, , , , - , soft-float, , , - float r1, s0 . , ​​s0, , r0, .

, toolchain , , hard-float . , multilib , , , , .

+3

Source: https://habr.com/ru/post/1598574/


All Articles