Keil™, An ARM® Company

Cx51 User's Guide

Type Qualifiers

The Cx51 Compiler supports two type qualifiers: const and volatile.

  • The const type qualifier declares an object that is not changed at run-time.
  • The volatile type qualifier declares an object whose value may be changed by something external to the code in which it appears. In an embedded system this would typically be hardware.