2.16. Compiler Feedback Options

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

armcl Option

tiarmclang Option

--analyze=codecov

-fprofile-instr-generate

-fcoverage-mapping

The armcl 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 tiarmclang 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 tiarmclang section in the tiarmclang Compiler User Manual for more information on what code coverage capabilities are available in the tiarmclang compiler tools.

armcl Option

tiarmclang Option

--analyze_only

-fprofile-instr-generate

-fcoverage-mapping

The armcl 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 tiarmclang section in the tiarmclang Compiler User Manual for more information on what code coverage capabilities are available in the tiarmclang compiler tools.

armcl Option

tiarmclang Option

--gen_profile_info

-fprofile-instr-generate

-fcoverage-mapping

The armcl 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 tiarmclang section in the tiarmclang Compiler User Manual for more information on what code coverage capabilities are available in the tiarmclang compiler tools.

armcl Option

tiarmclang Option

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

not supported

The armcl 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 tiarmclang compiler tools include executables such as tiarmcprofdata and tiarmcov 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 tiarmclang section in the tiarmclang Compiler User Manual for more information on what code coverage capabilities are available in the tiarmclang compiler tools.