Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The /PGD option is deprecated. Starting in Visual Studio 2015, prefer the /GENPROFILE
or /FASTGENPROFILE
linker options instead. This option is used to specify the name of the .pgd file used by the profile-guided optimization process.
Syntax
/PGD:filename
Argument
filename
Specifies the name of the .pgd
file that is used to hold information about the running program. When expanded, the fully qualified filename must not exceed MAX_PATH
(260 characters).
Remarks
When using the deprecated /LTCG:PGINSTRUMENT
option, use /PGD
to specify a nondefault name or location for the .pgd
file. If you don't specify /PGD
, the .pgd
file base name is the same as the output file (.exe
or .dll
) base name and is created in the same directory from which the link was invoked.
When using the deprecated /LTCG:PGOPTIMIZE
option, use the /PGD
option to specify the name of the .pgd
file to use to create the optimized image. The filename
argument should match the filename
specified to /LTCG:PGINSTRUMENT
.
For more information, see Profile-Guided Optimizations.
To set this linker option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > Linker > Optimization property page.
Modify the Profile Guided Database property. Choose OK to save your changes.