Tecnologia da Informática Márcio Francisco Dutra e Campos

Reversing Bits in C

07.31.2013 · Posted in Eng. Computação

“Interesting lessons can come from unexpected places! I was pleasantly surprised at how something as “simple” as reversing bits in a byte could lead me on an unexpectedly deep exploration: operation vs instruction count, memory access patterns and cache behavior, and low-level CPU instructions. It’s often very easy to make assumptions about the performance of code that we write, and I hope that this article serves as a reminder that the map is never the territory, and that the only way to understand what’s happening inside your code is by observing and measuring it.”

Leia o artigo em:

http://corner.squareup.com/2013/07/reversing-bits-on-arm.html

Comments are closed