/GL
Whole program optimization allows the compiler to perform optimizations with information on all modules in the program. Without whole program optimization, optimizations are performed on a per module (compiland) basis.
With information on all modules, the compiler can:
For more information on the optimizations available with whole program optimization, see /LTCG.
.obj files produced with /GL will not be available to such linker utilities as the EDITBIN and DUMPBIN.
If you compile your program with /GL and /c, you should use the /LTCG linker option to create the output file.
The following compiler options cannot be used with /GL:
Compiler Options | Setting Compiler Options