Mikroelektronika MIKROE-350 Data Sheet

Page of 526
AVR Specifics
Types Efficiency
First of all, you should know that AVR ALU, which performs arithmetic operations, is
optimized for working with bytes. Although mikroBasic PRO for AVR is capable of
handling very complex data types, AVR may choke on them, especially if you are
working on some of the older models. This can dramatically increase the time need-
ed for performing even simple operations. Universal advice is to use the smallest
possible type in every situation. It applies to all programming in general, and doubly
so with microcontrollers. Types efficiency is determined by the part of RAM memo-
ry that is used to store a variable/constant. 
4
4
103
CHAPTER