Keil Logo

C51: Control Directives

Information in this article applies to:

  • C51 Version All Versions


What are control directives and how do I use them?


The C51 Compiler offers a number of control directives that you can use to control the operation of the compiler. Directives are composed of one or more letters or digits and, unless otherwise specified, can be specified after the filename on the commpand line or within a source file using the #pragma directive.


  • Refer to #pragma in the Cx51 User's Guide.

Last Reviewed: Thursday, February 25, 2021

Did this article provide the answer you needed?
Not Sure
  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.