Keil Logo

PREPRINT Compiler Directive

Abbreviation

PP

Arguments

An optional filename enclosed in parentheses.

Default

No preprocessor listing is generated.

µVision

Options — C251 — C Preprocessor Listing.

Description

The PREPRINT directive instructs the compiler to produce a preprocessor listing. Macro calls are expanded and comments are deleted. If PREPRINT is used without an argument, the source filename with the extension .I is used. By default, the compiler does not generate a preprocessor output file.

The PREPRINT directive causes the compiler to produce a preprocessor listing file. Macro calls are expanded and comments are deleted and an object file is created.

If no argument is specified for PREPRINT, the preprocessor listing file is named basename.I where basename is the name of the source file.

If an argument is specified for PREPRINT, the preprocessor listing file is created with that name.

By default, the compiler does not create a preprocessor listing file.

Note

  • The PREPRINT directive may be specified only on the command line. It may not be specified in the C source file by means of the #pragma directive.
See Also

NOPRINT, PREPRINTONLY, PRINT

Example
C251 SAMPLE.C PREPRINT

C251 SAMPLE.C PP (PREPRO.LST)
  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.