Technical Support

C166: PREPRINTONLY DIRECTIVE


Information in this article applies to:

  • C166 Version 4.06

QUESTION

Is there a way in C166 to get a only a preprocessor listing?

ANSWER

Yes. The PREPRINTONLY directive, abbreviated PPO, instructs the compiler to produce a preprocessor listing and stop. When you use PREPRINTONLY, an object file is not created. Macro calls are expanded and comments are deleted.

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

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

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

The PREPRINTONLY 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.

For example:

   C166 SAMPLE.C PREPRINTONLY

or

   C166 SAMPLE.C PPO (PREPRO.LSI)

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure