Optimizing C++ Code : Constant-Folding
If you have arrived in the middle of this blog series, you might want instead to begin at the beginning.This post examines Constant-Folding – one of the simplest optimizations performed by the VC++ compiler. In this optimization, the compiler works out the result of an expression while it is compiling (at “compile-time”), an...