a very basic question
wen i use certain variables in my c code for atmega,
will the first 32 variable values get stored in the general purpose registers?
Or is there any special way to declare a variable ,so that it gets stored in register?
As shown in Figure 4, each register is also assigned a data memory address, mapping them
directly into the first 32 locations of the user Data Space. Although not being physically implemented
as SRAM locations, this memory organization provides great flexibility in access of the
registers, as the X-, Y-, and Z-pointer Registers can be set to index any register in the file.
i got this from the datasheet for mega16.