C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Preprocessor Output Options
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     You can produce listings of preprocessed files with the following
     options:
 
     Option   Effect
 
     /P       Writes preprocessed output to a file; names the file with
              the source file's base name and appends .I extension.
              Preprocessor directives are carried out and macro
              expansions are performed.
     /E       Writes preprocessed output to standard output; includes
              #line directives.
     /EP      Writes preprocessed output to standard output without
              #line directives.
     /C       Preserves comments during preprocessing (valid only with
              /P, /E, or /EP).
 
     These options suppress compilation; CL does not produce an object
     file or listing, even if you specify the /Fo or /Fm option on the
     CL command line. The preprocessed output file is a facsimile of
     your source file with a few operations carried out. In your output
     files, all preprocessor directives are performed, macro expansions
     are completed, and comments are removed (comments remain if you use
     the /C option).
 
     See also: Listing Files
                                    -♦-