SLAU132Y September 2004 – June 2021
In this phase, the compiler is invoked with --gen_profile_info, which instructs the compiler to add instrumentation code to collect profile information. The compiler inserts a small amount of instrumentation code to determine control flow frequencies. Memory is allocated to store counter information.
The instrumented application program is executed on the target using representative input data sets. The input data sets should correlate closely with the way the program is expected to be used in the end product environment. When the program completes, a run-time-support function writes the collected information into a profile data file called a PDAT file. Multiple executions of the program using different input data sets can be performed and in such cases, the run-time-support function appends the collected information into the PDAT file. The resulting PDAT file is post-processed using a tool called the Profile Data Decoder or pdd430. The pdd430 tool consolidates multiple data sets and formats the data into a feedback file (PRF file, see Section 4.8.2) for consumption by phase 2 of feedback directed optimization.