opt-report, Qopt-report

Tells the compiler to generate an optimization report to stderr.

IDE Equivalent

Windows: Diagnostics > Optimization Diagnostic Level

Linux: Compilation Diagnostics > Optimization Diagnostic Level

Mac OS X: None

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-opt-report [n]

Windows:

/Qopt-report[:n]

Arguments

n

Is the level of detail in the report. On Linux OS and Mac OS X systems, a space must appear before the n. Possible values are:

0

Tells the compiler to generate no optimization report.

1

Tells the compiler to generate a report with the minimum level of detail.

2

Tells the compiler to generate a report with the medium level of detail.

3

Tells the compiler to generate a report with the maximum level of detail.

Default

-opt-report 2 or /Qopt-report:2

If you do not specify n, the compiler generates a report with medium detail. If you do not specify the option on the command line, the compiler does not generate an optimization report.

Description

This option tells the compiler to generate an optimization report to stderr.

Alternate Options

None

See Also