Using Performance Advice to Optimize Your Code

You can use compiler generated Performance Advice to optimize your code. To get Performance Advice, compile with the following options:

--advice:performance Instructs the compiler to emit advice to stdout (default).
--advice:performance_file Instructs the compiler to emit advice into a file.
--advice:performance_dir Instructs the compiler to emit advice into a file in a specific directory.

NOTE

If an Advice file is requested, but there is no advice, the advice file will not be created; rather the compiler prints a message to stdout : "filename.c": advice #27004: No Performance Advice is generated.