Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the name and location of the Sample Profile Database (SPD) file used by the Sample Profile-Guided Optimization (SPGO) workflow.
Syntax
/SPD:filename
Argument
filename
Specifies the name of the .spd file. When expanded, the fully qualified path must not exceed MAX_PATH (260 characters).
Remarks
When you build with /SPGO, the linker creates an empty SPD file alongside the output binary. By default, the SPD file uses the same base name as the output file and is created in the directory where you invoked the link. Use /SPD to specify a different name or path.
When linking with /SPDIN, use /SPDIN to specify the input SPD file and /SPD to specify the output SPD file.
For more information about the SPGO workflow, see Tutorial: Use Sample Profile-Guided Optimization (SPGO) to improve performance.
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 > Command Line property page.
- Add
/SPD:filenameto the Additional Options box. Choose OK to save your changes.
To set this linker option programmatically
- See AdditionalOptions.
See also
MSVC linker reference
MSVC Linker Options
/SPDEMBED (Embed Sample Profile Database)
/SPDIN (Use Sample Profile Database)
/SPGO (Enable Sample Profile-Guided Optimization)
Tutorial: Use Sample Profile-Guided Optimization (SPGO) to improve performance