本文介绍了拿什么__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_SYSTEMS_ICC
被设置为编译器平台版本 -
__ __ IMAGECRAFT
- > (也请参阅下面的克利福的意见 - 也有一个宏观__ __ ICC_VERSION
,看到的) -
TASKING
- > -
__ __ GNUC
- >
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__的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!