Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fprofile-dwo-dir

Specifies the directory where .dwo files should be stored when using options fprofile-sample-generate and gsplit-dwarf. This is an experimental feature.

Syntax

Linux:

-fprofile-dwo-dir=dir

Windows:

/fprofile-dwo-dir:dir

Arguments

dir

Is the directory where the DWARF .dwo files should be stored.

Default

OFF

The compiler stores .dwo files in the default directory.

Description

This option specifies the directory where .dwo files should be stored when using options fprofile-sample-generate and gsplit-dwarf. It is an experimental feature.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

None

Examples

The following examples create a.dwo, b.dwo, and c.dwo files in the profile_dwo directory. The directory will be created if it doesn't already exist.

Linux

icpx -c -fprofile-sample-generate -gsplit-dwarf -fprofile-dwo-dir=profile_dwo a.cpp 
icx -c -fprofile-sample-generate -gsplit-dwarf -fprofile-dwo-dir=profile_dwo b.c

Windows

icx /c /fprofile-sample-generate -gsplit-dwarf /fprofile-dwo-dir:profile_dwo c.cpp

See Also