__attribute__((section("__CONFIG1.sec,code")))在C语言中这是啥意思啊?__attribute__能不能详解一下这个是怎么用的不?
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/15 17:24:37
__attribute__((section("__CONFIG1.sec,code")))在C语言中这是啥意思啊?
__attribute__能不能详解一下这个是怎么用的不?
《C30编译器用户指南》中有介绍,给个邮箱给你发过去.
2.3.1 指定变量的属性
编译器的关键字 __attribute__ 用来指定变量或结构位域的特殊属性.关键字后的
双括弧中的内容是属性说明.下面是目前支持的变量属性:
• address (addr)
• aligned (alignment)
• boot
• deprecated
• fillupper
• far
• mode (mode)
• near
• noload
• packed
• persistent
• reverse (alignment)
• section ("section-name")
• secure
• sfr (address)
• space (space)
• transparent_union
• unordered
• unused
• weak
weak也可以通过在关键字前后使用 __(双下划线)来指定属性(例如,用
__aligned__代替aligned).这样将使你在头文件中使用它们时不必考虑会出现与
宏同名的情况.
要指定多个属性,可在双括弧内用逗号将属性分隔开,例如:
__attribute__ ((aligned (16),packed)).
__attribute__((section(__CONFIG1.sec,code)))在C语言中这是啥意思啊?__attribute__能不能详解一下这个是怎么用的不?
----解释下几句英文---关于托福要求的.Graduate applicants whose native language is other than English must score at least 100 on the Internet Based TOEFL (iBT).In addition,the College may require the following minimum scores on each secti
Q1Determine where in the product life cycle (introduction phase,growth phase,maturity phase,decline phase)you would place each of the following products and then prepare a marketing strategy for each product based on the recommendations in this secti
问大家一些考研英语句子的翻译问题,谢谢大家了.第一个问题 smartest notes 翻译成最好的注释在这里smartest是什么意思?他又有最好的意思吗?第二个问题是 句子 Readers could point to their favorite secti
SAT 阅读方法问题,CR高手请进.这些天做题发现做题方法可能还有些问题,我用的是CUUS 那本书上介绍的划线方法.单篇的阅读在速度上基本上不成问题了,但是凡是遇到双篇的中、长阅读,那个SECTI