Keil Logo

Preprocessor (I) File

The preprocessor output file is created when the PREPRINT directive is specified. This file includes the preprocessor output for the specified source file.

The most obvious use for a preprocessor output file is to verify the operation of macros and conditional preprocessor directives.

For example, for the following C source file:

#define defIt(x)  char x[] = #x

void main (void)
{
defIt(asdf);
}

the C compiler generates the following preprocessor output file:

#line 1 "main.c" /0

 void main (void)
 {
  char asdf[] = "asdf";
 }

Note

  • The preprocessor output file is a valid C source file which may be compiled by the C Compiler.
  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.