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

ID 767253
Date 11/07/2023
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

Example

The following creates .dwo files and puts them in the directory profile_dwo/t.dwo:

Linux

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

Windows

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

See Also