E
Edgar Gilbert
Guest
I'm using VS2015 to build a C++ program. I'm a little confused as to why there are 2 place in the project configuration that control settings called "Whole Program Optimization".
It is found at Configuration Properties, General, Whole Program Optimization. The choices here look like the same choices that appear under Configuration Properties, Linker, Optimization, Link Time Code Generation.
It is also found at Configuration Properties, C/C++, Optimization, Whole Program Optimization, but the choices here are /GL yes or no.
Why are there 2 places to select Link Time Code Generation, and why are there 2 places labeled Whole Program Optimization?
What I want is to give the compiler the ability to basically inline small functions that are not necessarily defined in the same source file as where they are called. It seems I should be able to do that by compiling with /GL and linking with /LTCG. But then what is the purpose of the setting under Configuration Properties, General?
Continue reading...
It is found at Configuration Properties, General, Whole Program Optimization. The choices here look like the same choices that appear under Configuration Properties, Linker, Optimization, Link Time Code Generation.
It is also found at Configuration Properties, C/C++, Optimization, Whole Program Optimization, but the choices here are /GL yes or no.
Why are there 2 places to select Link Time Code Generation, and why are there 2 places labeled Whole Program Optimization?
What I want is to give the compiler the ability to basically inline small functions that are not necessarily defined in the same source file as where they are called. It seems I should be able to do that by compiling with /GL and linking with /LTCG. But then what is the purpose of the setting under Configuration Properties, General?
Continue reading...