What do the __CC_ARM, __ICCARM__, __GNUC__ and __TASKING__ macros mean?

Ishmeet picture Ishmeet · Jul 10, 2013 · Viewed 15k times · Source

I am working on STM32l151rct6a by stm, I have stumbled upon these MACRO definitions

__CC_ARM, __ICCARM__, __GNUC__, __TASKING__

Does anyone know what they mean?

Answer

fvu picture fvu · Jul 10, 2013

These are different compilers for ARM processors, probably these macros are used to hide compiler-dependent stuff in code that's compilable by several compilers.