本文介绍了__CC_ARM,__ ICCARM __,__ GNUC__和__TASKING__宏是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在通过stm开发STM32l151rct6a,偶然发现了这些MACRO定义
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?
推荐答案
这些是用于ARM处理器的不同编译器,可能这些宏用于隐藏可由多个编译器编译的代码中与编译器相关的内容.
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 (还有一个宏__IAR_SYSTEMS_ICC__
设置为编译器平台版本 -
__IMAGECRAFT__
-> Imagecraft C (另请参见下面的Clifford注释-还有一个宏,请参见 pdf文档) -
TASKING
-> 任务处理 -
__CC_ARM
-> ARM的(RealView)编译器 -
__GNUC__
-> gcc
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__宏是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!