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

后端 未结 3 1211
陌清茗
陌清茗 2021-02-08 17:39

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

__CC_ARM, __ICCARM__, __GNUC__, __TASKING__

Does anyone kno

3条回答
  •  礼貌的吻别
    2021-02-08 18:40

    These are compiler specific MACROS and defined in compiler code.For example __ICC is for IAR and __GNU is for GNU compilers.There are some code given in BSP part for STM platform which have dependency on compilers.

提交回复
热议问题