Optimized C++ by Kurt Guntheroth
Optimized C++ Kurt Guntheroth ebook
Publisher: O'Reilly Media, Incorporated
C++ run-time support routines obviously have a significant cost, because otherwise such behavior would have be inlined. / Od disables optimization, speeding compilation and simplifying debugging. I'm working on scientific code that is very performance-critical. /O2 optimizes code for maximum speed. TMS320C55x Optimizing C/C++ Compiler v 4.4. I bet the Intel compiler does, too. Reduced to mere minutes when fully optimized by the z/OS XL C/C++ compiler. Literature Number: 3.3.2 Optimization Considerations When Mixing C/C++ and Assembly . Both the current version of VC++ and GCC do tail call optimizations fairly well and even for mutually recursive calls. Optimizing C++/General optimization techniques/Other techniques. From Wikibooks In C++, if the array length is not a compile-time constant, use a vector . /Ob controls inline function expansion. At Realm, we're always looking for ways to optimize for speed. Function, with an execution time on average 24% faster than the C++ STL.