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.
The /DYNAMICDEOPT linker option, when used with the compiler switch /dynamicdeopt, enables C++ Dynamic Debugging. By using this feature, you can debug optimized code as if it were compiled deoptimized. You can step in anywhere with on-demand function deoptimization.
Syntax
/DYNAMICDEOPT
/DYNAMICDEOPT:SUFFIX=<suffix>
/DYNAMICDEOPT:SYNC
Arguments
suffix
Specify the file extension for the deoptimized output.
If you don't specify options and use test.cpp as input, the compiler output includes test.obj, test.exe, and test.pdb, as well as test.alt.obj, test.alt.exe, and test.alt.pdb. This switch allows you to change the suffix for the unoptimized binary build artifacts from .alt to something else. If you change the suffix, all files must use the new suffix, and it needs to match the name you pass to the compiler by using /dynamicdeopt:suffix. Typically, you don't use this switch unless you need to avoid filename collisions with other files that you have.
SYNC
Builds the deoptimized output after building the optimized output instead of in parallel. By default, the compiler spawns a parallel linker to link the unoptimized binary. This switch makes the second link run serially after the first one. This switch is provided in case this better suits your build environment.
Remarks
This flag, available starting with Visual Studio 2022 Version 17.14 Preview 2, applies only to x64 projects.
IncrediBuild 10.24 supports C++ Dynamic Debugging builds.
FastBuild v1.15 supports C++ Dynamic Debugging builds.
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 Linker > Debugging property page.
Set this linker option programmatically
See also
/dynamicdeopt (Enable C++ Dynamic Debugging)
C++ Dynamic Debugging
MSVC linker reference
MSVC linker options