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.
Tool/software: TI C/C++ Compiler
I would like to determine in compile time what ARM architecture is code being compiled for, as controlled by -mv switch.
With newer cl470 (such as 4.9 version) there are predefined macros available (e.g. __TI_ TMS470_V6__) but these are absent with the older v4.1 version.
Is there a way to achieve conditional compilation for different arm architectures (4, 5e, 6, ...) with cl470 v4.1, or it is a lost case?
Unfortunately, for the time being, compiler upgrade is out of question.
Thank you.
Wojciech Migda1 said:Is there a way to achieve conditional compilation for different arm architectures (4, 5e, 6, ...) with cl470 v4.1
Unfortunately, no. The closest you can get is to create your own with something like -D__TI_ARM_V6__ .
Thanks and regards,
-George