Datasheet

AVR Specifics
Types Efficiency
First of all, you should know that AVR ALU, which performs arithmetic operations, is opti-
mized for working with bytes. Although mikroC PRO 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 needed for performing even simple oper-
ations. 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 memory that is used to store a variable/constant.
4
113
CHAPTER