Author Topic: What optimizations you can expect from CPU?  (Read 453 times)



0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1480
    • View Profile
    • Geeks3D.com
What optimizations you can expect from CPU?
« on: April 23, 2018, 05:32:19 PM »
Quote
Compilers are known for doing all sorts of cool optimizations on the source code, generating very efficient assembly code. You can expect that there will be no useless computations in the compiled code. Even if you leave those inefficiencies, most major compilers will optimize everything away. Moreover, compilers are aware (to some degree) about microarchitectural details of the target CPU. So, it may seems that compiler is the one who is in charge for performance, but it’s not.

Modern high-end CPUs are also known to be really greedy when it comes for performance, and they also do amazing job at running assembly code super-fast. In this post I tried to show what optimizations you can rely on, and what patterns are still beyond CPU capabilities.

Link: https://dendibakh.github.io/blog/2018/04/22/What-optimizations-you-can-expect-from-CPU