Introduction to Low Latency Programming: Minimize Branching and Jumping(tech.davidgorski.ca) |
Introduction to Low Latency Programming: Minimize Branching and Jumping(tech.davidgorski.ca) |
I wouldn'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?
To do otherwise is writing the ASM with the compiler as a code generator that you do not control. Like tying reins to a steering wheel and driving from the trailer, instead of the front seat. Fun but sloppy.