This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
we have a new project that requires the usage of the TI ARM Optimizing C/C++ Compiler v18.1.0.LTS
In the existing code base that needs to be compiled with this compiler, we rely on a dedicated GCC-specific attribute to adjust the calling convention:
when using the GCC compilation option -mfloat-abi=hard for our library.
While checking the User Manual of the TI compiler, I could not find any support or alternative for this attribute.
Currently, we control the attribute usage via a CALLING_CONVENTION define as follows:
#ifdef __ARM_EABI__ #ifdef __ARM_PCS_VFP #define CALLING_CONVENTION __attribute__((__pcs__("aapcs"))) #else /* !__ARM_PCS_VFP */ #define CALLING_CONVENTION #endif #else /* !__ARM_EABI__ */ #define CALLING_CONVENTION #endif
Could you please provide advise on how to realize this via the configuration means or flags provided via the TI C/C++ for ARM?
Thanks and best regards
please provide advise on how to realize this via the configuration means or flags provided via the TI C/C++ for ARM?
Unfortunately, there is no method by which you can control, on a function by function basis, whether vector floating-point (VFP) co-processor instructions are used. To see what support the compiler provides, please search the TI ARM compiler manual for the sub-chapter titled VFP Support.
Thanks and regards,
-George
Hi George,
thank you for your fast answer. It is very welcome.
Then I will find some workaround for this issue by adapting our libraries and components.
Thanks and best regards,
Philipp