Keil Logo Arm Logo

ORDER Compiler Directive

Abbreviation

OR

Arguments

None.

Default

The variables are not ordered.

µVision

Options — C251 — 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
C251 SAMPLE.C ORDER

#pragma OR

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.