Zen of Defensive Programming: Compilers and Compatibility

Modern compilers are extremely powerful tools that have built-in optimization logic far outpacing the abilities of ordinary programmers. They are intimately familiar with the internal states of the processor at any given time and can optimize register usage, cache pipelines, core states, and performance bottlenecks better than most of us mere mortals.

Also, remember that your job is not to try and outsmart the compiler. Your job is to ensure you get the implementation right. The compiler’s jo...

 •  0 comments  •  flag
Share on Twitter
Published on April 14, 2022 12:19
No comments have been added yet.