Keil v.6 preprocessor defines

89 views Asked by At

Can someone please explain this screenshot to me? #if !defined __ARM_COMPILER_V6__ #eeror #endif screenshot I'm getting this error I do not get it Macro ARM_COMPILER_6 has to be definrd //////////// For Keil v.5 I had code which based upon what is defined #if defined GNUC or __CC_ARM was printing via __io_putchar() for GCC of fputc() for ARMCC via ITM Now I can't compile this file Maybe someone has this tool for v.6 and ready to share?

1

There are 1 answers

1
ddbug On BEST ANSWER

In the ARM documentation here the compiler version macro is __ARMCOMPILER_VERSION or __ARMCC_VERSION

It is defined as decimal number in form Mmmuuxx where M is 5 or 6.

Where have you found __ARM_COMPILER_V6__?