# qopt-report-per-object, Qopt-report-per-object

Tells the compiler that optimization report information should be generated in a separate file for each object.

## Syntax

Linux: | -qopt-report-per-object

macOS: | -qopt-report-per-object

Windows: | /Qopt-report-per-object

## Arguments

None

## Default

OFF | No optimization report is generated.

## Description

This option tells the compiler that optimization report information should be generated in a separate file for each object.

If you specify this option for a single-file compilation, a file with a .optrpt extension is produced for every object file or assembly file that is generated by the compiler. For a multifile Interprocedural Optimization (IPO) compilation, one file is produced for each of the N true objects generated in the compilation. If only one true object file is generated, the optimization report file generated is called ipo_out.optrpt. If multiple true object files are generated (N>1), the names used are ipo_out1.optprt, ipo_out2.optrpt, …ipo_outN.optrpt.

The .optrpt files are written to the target directory of the compilation process. If an object or assembly file is explicitly generated, the corresponding .optrpt file is written to the same directory where the object file is generated. If the object file is just a temporary file and an executable is generated, the corresponding .optrpt files are placed in the directory in which the executable is placed.

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* or macOS*) or /Qopt-report-phase:all (Windows*).

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Optimization Report Options

## See Also

qopt-report, Qopt-report compiler option