Optimizer Assistant Advice: results of an Optimizer Assistant build run.

Typical Advice

 #27011-D Optimization Assistant completed and best results were obtained with speed vs size setting 4 (--opt_for_speed=4).

Why is the Compiler giving this Advice ?

The Optimizer Assistant feature completed building the project for all settings of --opt_for_speed.

What it means:

The option --opt_for_speed controls the tradeoff between size and speed (0-5 range). Setting --opt_for_speed=0 enables optimizations geared towards improving code size with a high risk of worsening or impacting performance. At the other extreme, setting --opt_for_speed=5 eanbles optimizations geared towards improving the code performance/speed with a high risk of worsening or impacting code size. Settings between 0 and 5 vary the emphasis on performance versus code size.

The Optimizer Assistant feature will build your project for all settings of --opt_for_speed. When complete, if there is an optimial setting then advice emitted recommending to change --opt_for_speed.

Opt assist advice.png

Final results will show a bar chart of code size for each --opt_for_speed setting. Any builds that failed link will show in red. In below results window, the green check mark represents current setting for --opt_for_speed, and the green bar is recommended setting.

Status while running4.png

Hovering the cursor over a bar will present options to update project settings or to debug the program.

Results.png

Risks, Severity

Additional performance improvements may be possible when using higher settings for --opt_for_speed.

Suggested Action

The Optimizer Assistant feature will emit advice recommending the best --opt_for_speed setting to use.

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Compiler/diagnostic messages/27011 here.