Jan 16, 2020
01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 16, 2020
01:27 PM
Hi all,
Is it necessary to activate the Floating Point Unit (FPU) of the TriCore CPU?
Best regards,
Lina
#8042000 19761
Is it necessary to activate the Floating Point Unit (FPU) of the TriCore CPU?
Best regards,
Lina
#8042000 19761
- Tags:
- IFX
3 Replies
Jan 17, 2020
04:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 17, 2020
04:55 AM
Hi Lina,
It is not necessary to enable the Floating Point Unit, but to utilize it, the compiler needs to generate code for the FPU HW, i.e. the distinction to use either the fix point arithmetic or the FPU is done via the instruction which is used. Most compiler are using their floating point libraries as default, which assumes that there is no FPU. Tricore™ is supporting single precision floating point.
Kind regards,
Mr. AURIX™
It is not necessary to enable the Floating Point Unit, but to utilize it, the compiler needs to generate code for the FPU HW, i.e. the distinction to use either the fix point arithmetic or the FPU is done via the instruction which is used. Most compiler are using their floating point libraries as default, which assumes that there is no FPU. Tricore™ is supporting single precision floating point.
Kind regards,
Mr. AURIX™
Jan 17, 2020
05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 17, 2020
05:44 AM
Hello Lina,
the commercial TASKING TriCore tools as well as the AURIX Development Studio do include libraries which use hardware FPU instructions for single precision float calculations. The user can decide if the C compiler shall generate FPU instructions and also if library functions which do so shall be used. This is defined by the settings in the:
TASKING C Compiler >> Floating-point
menu for the AURIX Development Studio and
C/C++ Compiler >> Floating-point
menu for the commercial TASKING TriCore toolset.
Best regards,
Ulrich Kloidt
TASKING tools support
the commercial TASKING TriCore tools as well as the AURIX Development Studio do include libraries which use hardware FPU instructions for single precision float calculations. The user can decide if the C compiler shall generate FPU instructions and also if library functions which do so shall be used. This is defined by the settings in the:
TASKING C Compiler >> Floating-point
menu for the AURIX Development Studio and
C/C++ Compiler >> Floating-point
menu for the commercial TASKING TriCore toolset.
Best regards,
Ulrich Kloidt
TASKING tools support
Jan 17, 2020
06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 17, 2020
06:03 AM
I need to update my statement. The AURIX Development Studio does not support using different FP settings. Although the menu doea allow this the options are not passed to the C compiler / linker. So for the AURIX Development Studio only single precision FP with hardware FPU support and no software FP trapping seems to be supported. For the commercial TASKING TriCore tools this is fully configurable instead. I'm sorry for the confusion.
Best regards,
Ulrich Kloidt
Best regards,
Ulrich Kloidt