ARM Technical Support Knowledge Articles

PREPRINTONLY DIRECTIVE

Applies to: C166 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2005-07-15 14:10:17

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential