0

Heres a snippet that compares the speed of volatile (nonregister) variables, and register variables and display's the average cycle count for each. This shows you exactly how much using registers speeds up loops and calculations.

I get the following output, but it may vary:

Cycle count for nonregister integer: 8

Cycle count for register integer: 3