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

来源:互联网 发布:985 211知乎 编辑:程序博客网 时间:2024/06/05 18:35

声明:

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

 Related Knowledgebase Articles

  • C51: ORDER DIRECTIVE
  • C251: ORDER DIRECTIVE
  • GENERAL: VARIABLES NOT KEPT IN ORDER


ORDER 编译器伪指令

缩写

OR

测试

无。

缺省

变量是无序的。

µVision

Options — C51 — Keep Variables in Order.

描述

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

 注意

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

 相关知识库标题

  • C51: ORDER DIRECTIVE
  • C251: ORDER DIRECTIVE
  • GENERAL: VARIABLES NOT KEPT IN ORDER



原创粉丝点击