本文介绍了__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 (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__宏是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 15:20