Keil™, An ARM® Company

Cx51 User's Guide

#pragma

The #pragma directive specifies compiler directives that may change during program compilation.

#pragma directive « directive ... »

Basically, you place pragmas in your program source code where you want the directive(s) to take effect. Refer to the Cx51 Compiler Directives for a complete list of directives you may specify using #pragma.

Note

  • Not all directives may be specified using #pragma.
  • Some directives may be specified only once (at the top of the file) and some may be specified multiple times without the source code.
  • Some directives may be specified on the command line and overridden with #pragma.

Related Knowledgebase Articles