User and Reference Guide for the Intel® C++ Compiler 14.0
Tells the compiler to analyze certain code and generate recommendations that may improve optimizations.
Linux OS and OS X: | guide-opts=string |
Windows OS: | /Qguide-opts:string |
OFF |
You do not receive guidance on how to improve optimizations. However, if you specify the [Q]guide option, the compiler analyzes and generates recommendations for all the code in an application |
This option tells the compiler to analyze certain code and generate recommendations that may improve optimizations.
This option is ignored unless you also specify one or more of the following options:
[Q]guide
[Q]guide-vec
[Q]guide-data-trans
[Q]guide-par
When the [Q]guide-opt option is specified, a message is output that includes which parts of the input files are being analyzed. If a routine is selected to be analyzed, the complete routine name will appear in the generated message.
When inlining is involved, you should specify callee line numbers. Generated messages also use callee line numbers.
Windows: Diagnostics > Guided Auto Parallelism Code Selection Options
Linux: Compilation Diagnostics > Guided Auto Parallelism Code Selection
OS X: Diagnostics > Guided Auto Parallelism Code Selection
None
Consider the following:
Linux* OS: -guide-opts="v.c, 1-10; v2.c, 1-40, 50-90, 100-200; v5.c, 300-400; x.c, 'funca(int)', 22-44, 55-77, 88-99; y.c, 'funcb'"
Windows* OS: /Qguide-opts:"v.c, 1-10; v2.c, 1-40, 50-90, 100-200; v5.c, 300-400; x.c, 'funca(int)', 22-44, 55-77, 88-99; y.c, 'funcb'"
The above command causes the following to be analyzed:
| file v.c, line numbers 1 to 10 |
| file v2.c, line numbers 1 to 40, 50 to 90, and 100 to 200 |
| file v5.c, line numbers 300 to 400 |
| file x.c, routine funca with parameter (int), line numbers 22 to 44, 55 to 77, and 88 to 99 |
| file y.c, routine funcb |