Difference between revisions of "GCC floating-point options"
(Created page with "The GNU C Compiler produces binaries with several options in regards to floating-point operations: {| class="wikitable" |- ! style="width: 15%;" | Compiler flag || st...") |
|||
Line 42: | Line 42: | ||
|} |
|} |
||
− | ''[[embOS]] for GCC'' is shipped with distinct sets of libraries for each floating-point ABI. While there is no immediate effect on embOS itself, this allows for compalibity with all applications and third-party libraries customers may utilize. |
+ | ''[[embOS]] for GCC'' typically is shipped with distinct sets of libraries for each floating-point ABI. While there is no immediate effect on embOS itself, this allows for compalibity with all applications and third-party libraries customers may utilize. |
Revision as of 15:30, 28 January 2020
The GNU C Compiler produces binaries with several options in regards to floating-point operations:
Compiler flag | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-mfloat-abi=<value> (-mhard-float) (-msoft-float) |
Specifies which floating-point ABI to use. Permissible values are:
The hard-float and soft-float ABIs are not link-compatible. You must compile your entire program with the same ABI and link with a compatible set of libraries. | ||||||||||||||||||
-mfpu=<value> (-mfp=<value>) (-mfpe=<value>) |
Specifies the available floating-point hardware on the target. Permissible values include:
Has no effect when -mfloat-abi=soft is specified. |
embOS for GCC typically is shipped with distinct sets of libraries for each floating-point ABI. While there is no immediate effect on embOS itself, this allows for compalibity with all applications and third-party libraries customers may utilize.