3.15. Compiler Feedback Options

The following table provides information about feedback directed optimization options that are available in the cl2000 compiler. The c29clang compiler does not currently support profile guided optimizations, although the c29clang compiler does provide some support for generating code coverage information. Support for profile guided optimizations may be considered in future version of the c29clang compiler tools.

cl2000 Option

c29clang Option

--analyze=codecov

-fprofile-instr-generate

-fcoverage-mapping

The cl2000 compiler can be made to generate code coverage analysis information from profile data. This option must be used in combination with --use_profile_info.

The c29clang compiler can be made to generate linked output files that have been instrumented with code coverage information using the -fprofile-instr-generate option in combination with the -fcoverage-mapping option. Please see the Source-Based Code Coverage in c29clang section in the c29clang Compiler User Manual for more information on what code coverage capabilities are available in the c29clang compiler tools.

cl2000 Option

c29clang Option

--analyze_only

-fprofile-instr-generate

-fcoverage-mapping

The cl2000 compiler can be made to generate only a code coverage information file. This option must be used in combination with --use_profile_info. To instruct the compiler to perform code coverage analysis of an instrumented application, you must specify --analyze=codecov, --analyze_only, and --use_profile_info.

Please refer to the Source-Based Code Coverage in c29clang section in the c29clang Compiler User Manual for more information on what code coverage capabilities are available in the c29clang compiler tools.

cl2000 Option

c29clang Option

--gen_profile_info

-fprofile-instr-generate

-fcoverage-mapping

The cl2000 compiler can be made to append compiled code with instrumentation that can collect profile data information when the instrumented application is run.

Please refer to the Source-Based Code Coverage in c29clang section in the c29clang Compiler User Manual for more information on what code coverage capabilities are available in the c29clang compiler tools.

cl2000 Option

c29clang Option

--use_profile_info=<file1>[,<file2>,…]

not supported

The cl2000 compiler can be made to read profile data information from the list of files that are specified as arguments to the --use_profile_info option and use this information to inform optimization choices and/or the generation of code coverage information.

The c29clang compiler tools include executables such as c29profdata and c29cov to help view code coverage information that has been generated when an instrumented linked output file is run.

Please refer to the Source-Based Code Coverage in c29clang section in the c29clang Compiler User Manual for more information on what code coverage capabilities are available in the c29clang compiler tools.