Keil™, An ARM® Company

Cx51 User's Guide

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 type, initilalization, 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