Compilation Problem Isolator
Product Release Notes

Overview

The Compilation Problem Isolator (CPI) helps pinpoint compile-time problems in C and C++ programs which will not compile because of a syntax error, compiler bug, etc. CPI reduces the size of test cases by removing all source code lines within a file that do not contribute to the error.

Using the Compilation Problem Isolator

Invoke CPI from the command line with the following syntax:

icpi myfile

where myfile is your original source file. CPI will create an output file with the name of the original file and an extension of .tsf.orig_ext, where orig_ext is the extension of the original file (usually .c or .cpp). For example, the command

icpi prog.cpp

will create an output file called prog.tsf.cpp

You can get the command-line options by typing

icpi -?

The output of the icpi -? command is listed below:

======================Compilation Problem Isolator Help======================

OPTION LIST

The option keywords are not case sensitive.

-COMPILER=<compiler_path>
-LOGFILE=<logfile_path> (logfile contains completion log)
[-ERRORMATCH=<matching_criteria_file_path>] (default is ErrorMatch.txt)
[-ERRORMATCH=<matching_error_text>] (icpi will look for this error text only. If "^.*" is at the beginning of the matching_error_text, icpi will ignore the text before the error_text.
[-SAVESTEP=] (saves the intermedium files into filename.tsf.cpp.x) For example:

[-VERBOSE] (prints out all the details)
[-LINKERR] (will look for link time errors)

[-BUILD or -B] (prints out the build date information)
[-VERSION or -V] (prints out the version information)
[-HELP or -?] (displays this message)

Examples

icpi -compiler="icc -O3 -ipo" -errormatch="^.*couldn't match parameter" -verbose bob.cpp

FILES PRODUCED

source_file.tsf.suffix: the isolated code
source_file.CECR_errfile: the results of the last run of the compiler logfile_path

The ErrorMatch.txt file

If a text file called ErrorMatch.txt file is found in the current working directory, CPI will look for strings specified in this file. You can also specify the name of the file using the -ERRORMATCH command-line option. There is an example of ErrorMatch.txt in the doc directory of the Intel C/C++ Compiler. Below is another example of the contents of ErrorMatch.txt.


CPI by default will only look for compile-time issues. To look for errors that arise during linking, use the /linkerr option.

Disclaimer and Legal Information

The information in this document is subject to change without notice and Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document. This document and the software described in it are furnished under license and may only be used or copied in accordance with the terms of the license. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted by this document. The information in this document is provided in connection with Intel products and should not be construed as a commitment by Intel Corporation.

EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility applications.

Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them.

The software described in this document may contain software defects which may cause the product to deviate from published specifications. Current characterized software defects are available on request.

Intel, the Intel logo, Intel SpeedStep, Intel NetBurst, Intel NetStructure, MMX, Intel386, Intel486, Celeron, Intel Centrino, Intel Xeon, Intel XScale, Itanium, Pentium, Pentium II Xeon, Pentium III Xeon, Pentium M, and VTune are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.

Copyright © 2005, Intel Corporation.