Keil Logo

#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

  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.