Anti-tip of the month

Very old but still as relevant… and very interesting too! Directly go to “anti-tip” section of this article.

“The moral of the story is: don’t get tricky. C programmers often try to minimize the number of lines of C in their program without consideration for what the compiler will generate. When in doubt, write clear code and give the optimizer a chance to maximize performance. Look at the compiler output. Your code will be easier to debug and probably faster too.”

comments powered by Disqus