CX51 用户手册----ORDER伪指令

声明:

1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。

2、请勿用于商业用途。

3、英文来自:http://www.keil.com/support/man/docs/c51/。

4、欢迎大家共同与我交流探讨(290207203@qq.com)。

ORDER Compiler Directive

Abbreviation

OR

Arguments

None.

Default

The variables are not ordered.

µVision

Options — C51 — Keep Variables in Order.

Description

The ORDER directive instructs the compiler to order all variables in memory according to their order of definition in the C source file. This directive disables the hash algorithm used by the C compiler when adding symbols to the symbol table and may result in longer compile times.

 Note

  • Variables with memory typeinitilalization, and without initilalization have all different tables. Therefore only variables with the same attributes are kept within order.
Example
C51 SAMPLE.C ORDER

#pragma OR


ORDER 编译器伪指令

缩写

OR

测试

无。

缺省

变量是无序的。

µVision

Options — C51 — Keep Variables in Order.

描述

ORDER 伪指令告诉编译器,根据变量在C源文件中的定义对它们排序。当添加符号到符号表时,这个伪指令禁止C编译器使用的哈希算法,并可能导致更长的编译时间。 

 注意

  • 有存储器类型、初始值的变量和没有初始值的变量属于不同的表。因此,只有属性相同的变量按顺序存储。
示例
C51 SAMPLE.C ORDER

#pragma OR



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值