/OPT (Optimizations)
Controls the optimizations that LINK performs during a build.
/OPT:{REF | NOREF}
/OPT:{ICF[=iterations] | NOICF}
Optimizations generally decrease the image size and increase the program speed at a cost of increased link time.
You can use the /VERBOSE option to see the functions removed by /OPT:REF and the functions that are folded by /OPT:ICF.
To set this linker option in the Visual Studio development environment
-
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
-
Click the Linker folder.
-
Click the Optimization property page.
-
Modify one of the following properties:
-
Enable COMDAT Folding
-
Optimize for Windows 98
-
References
-
To set this linker option programmatically
-
See EnableCOMDATFolding and OptimizeReferences properties.
Note