拿什么__CC_ARM,__ICCARM__,__GNUC__,__TASKING__ [英] What means __CC_ARM, __ICCARM__, __GNUC__, __TASKING__

查看:2750
本文介绍了拿什么__CC_ARM,__ICCARM__,__GNUC__,__TASKING__的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在STM32l151rct6a由STM的工作,我已经在这些宏定义跌跌撞撞

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

__CC_ARM, __ICCARM__, __GNUC__, __TASKING__

任何人都知道他们是什么意思?

Anyone knows what they means?

推荐答案

这些是ARM处理器不同的编译器,可能是这些宏用来隐藏code,它由几个编译器的编译编译器相关的东西。

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.

  • ICCARM --> IAR (there will also be a macro __IAR_SYSTEMS_ICC__ that is set to the compiler platform version
  • __IMAGECRAFT__ --> Imagecraft C (also see Clifford's comments below - there's also a macro __ICC_VERSION__, see the pdf documentation)
  • TASKING --> Tasking
  • __CC_ARM --> ARM's (RealView) compiler
  • __GNUC__ --> gcc

这篇关于拿什么__CC_ARM,__ICCARM__,__GNUC__,__TASKING__的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆