TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Introduction to Low Latency Programming: Minimize Branching and Jumping

4 pointsby dgskiabout 1 year ago

1 comment

h2odragonabout 1 year ago
&gt; Regardless, a good compiler will use CMOV when it can, even for if statements<p>I wouldn&#x27;t count on it: watch what the compiler outputs closely, and if it matters go ahead and go to ASM instead of playing games with delicate dependencies on specific behaviors of specific versions of certain compilers. GCC 2.95 ring bells?<p>To do otherwise is writing the ASM with the compiler as a code generator <i>that you do not control</i>. Like tying reins to a steering wheel and driving from the trailer, instead of the front seat. Fun but sloppy.