0
Considering programming for 8bit microcontrollers, we know that even for this microcontroller, the compilers have reached a unique level of optimization that allows us to program focused only on the quality of the code reading.
But when programming for microcontrollers it is essential that we always worry about the performance of our code and its size.
Therefore, it is better to use complex mathematical operations for the processor as a division, or to go directly to an optimization of the code and use logical operators for displacement (shift) and sums?