# qopt-report-file, Qopt-report-file

Specifies that the output for the optimization report goes to a file, stderr, or stdout.

## Syntax

Linux: | -qopt-report-file=keyword

macOS: | -qopt-report-file=keyword

Windows: | /Qopt-report-file:keyword

## Arguments

keyword | Specifies the output for the report. You can specify one of the following:
filename | Specifies the name of the file where the output should go.
stderr | Indicates that the output should go to stderr.
stdout | Indicates that the output should go to stdout.

## Default

OFF | No optimization report is generated.

## Description

This option specifies that the output for the optimization report goes to a file, stderr, or stdout.

If you use this option, you do not have to specify option [q or Q]opt-report.

When optimization reporting is enabled, the default is -qopt-report-phase=all (Linux* and macOS) or /Qopt-report-phase:all (Windows*).

## IDE Equivalent

Visual Studio: Diagnostics > Optimization Diagnostic File

Diagnostics > Emit Optimization Diagnostic to File

Eclipse: Compilation Diagnostics > Emit Optimization Diagnostics to File

Compilation Diagnostics > Optimization Diagnostics File

Xcode: None

## Alternate Options

None

Parent topic: Optimization Report Options

## See Also

qopt-report, Qopt-report compiler option