CX51 用户手册----STRING伪指令
来源:互联网 发布:avi转gif软件 编辑:程序博客网 时间:2024/05/17 16:57
声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
STRING Compiler Directive
AbbreviationNone.
Arguments)(CODE), (XDATA), or (FAR)
DefaultSTRING (CODE)
µVisionOptions — C51 — Misc controls.
DescriptionThe STRING directive specifies the memory type used for implicit strings. By default, implicit strings are located in code memory. For example:
void main (void) { printf ("hello world\n");}
in this example, the string "hello world" is located in code memory.
The STRING directive changes the default location for implicitly located strings. This directive must be used carefully, since existing programs might use memory typed pointers to access strings.
One good reason to consider changing the default location of implicit strings (to thexdata or far memory areas) to avoid using code banking. This directive is useful especially for extended 8051 devices like the NXP 80C51MX.
Note
- The XDATA and FAR options require that you use the OMF2 directive.
XCROM
ExampleC51 SAMPLE.C STRING (XDATA)#pragma STRING (FAR)
STRING 编译器伪指令
缩写无。
参数)(CODE), (XDATA), or (FAR)
缺省STRING (CODE)
µVisionOptions — C51 — Misc controls.
描述STRING 伪指令指定隐式串的存储器类型。缺省情况下,隐式串定位在code存储器。例如:
void main (void) { printf ("hello world\n");}
在这个示例中, "hello world"存储器定位在code存储器。
STRING 伪指令改变隐式串的定位位置。使用这个伪指令必须小心,因为已存在的程序可能使用指定存储器类型的指针访问串。
考虑改变隐式串的缺省位置 (到xdata 或 far 存储器区域) 的好处时避免使用代码分组。 象NXP 80C51MX这样的扩展8051器件,这个伪指令非常有用。
这样
- XDATA 和 FAR 选项需要用户使用 OMF2 伪指令。
XCROM
示例C51 SAMPLE.C STRING (XDATA)#pragma STRING (FAR)
- CX51 用户手册----STRING伪指令
- Cx51 用户手册----FIXXC800 伪指令
- CX51 用户手册----FLOATFUZZY 伪指令
- CX51 用户手册----INCDIR 伪指令
- CX51 用户手册----INTERVAL 伪指令
- CX51 用户手册----INTPROMOTE 伪指令
- CX51 用户手册----INTVECTOR 伪指令
- CX51 用户手册----LARGE伪指令
- CX51 用户手册----LISTINCLUDE伪指令
- CX51 用户手册----MAXARGS 伪指令
- CX51 用户手册----MDU_F120伪指令
- CX51 用户手册----MDU_R515 伪指令
- CX51 用户手册----MOD517 伪指令
- CX51 用户手册----MODA2伪指令
- CX51 用户手册----MODAB2 伪指令
- CX51 用户手册----MODC2伪指令
- CX51 用户手册----MODDA伪指令
- CX51 用户手册----MODDP2伪指令
- 提高班-培养“狼”一样的学生
- 写代码其实很容易,但正确的、健壮的程序却不容易
- Activity
- SQL SERVER 同时对多个服务器执行语句
- C++ typedef使用方法总结
- CX51 用户手册----STRING伪指令
- map 遍历方法
- 未启用当前数据库的 SQL Server Service Broker
- Linux下: Eclipse安装配置OpenCV2.1,用C++调用OpenCV过程 及 测试实例
- 浏览器Http请求头部比较
- 我对getaddrinfo的理解
- 02 完全背包
- 一周互联网:中国网民5.38亿 手机成最大上网端
- OpenStack Glance 配置