feedback(1) — RISC
Name
feedback − generate a feedback file using profiler, pixie, and execution data analyzer prof.
Syntax
feedback [ pixie-options ] [ prof-options ] [ −o feedback-file ] objfile [ objfile-arguments ]
Description
The feedback command invokes the pixie utility to add profiling code to an object file, which is executed to obtain profiling information. The command then invokes the prof utility to analyze the profiling information. The prof utility can combine the profiling information files or produce a feedback file that lets the optimizer take into account the program’s runtime behavior during a subsequent compilation.
If the output of objfile needs to be redirected, but not the output of the feedback utility, the redirection characters need to be within quotes.
The −o option specifies the name of the feedback file. This feedback file also can be specified by the −feedback option of the prof utility. You should use only one of these options to specify a feedback file, not both.
The command accepts pixie and prof options.
Examples
In the following example, feedback sends the profiling information to the standard output.
feedback myprog
In the following example, the profiling information is written to the file myprog.feedback, which can be used in a subsequent compilation.
feedback -feedback myprog.feedback myprog