AVR C Compilers Behavior

Make the AVR C compilers so that the program remembers the address in SRAM, where the function starts storing its data (variables, arrays) in the data stack in one of the index registers in order to get the absolute address of the local variable using the formula:

absoluteAdr = functionDataStartAdr + localShiftOfVariable.

And do they increase the point of the data stack when the variable declared to it by length or by the pointer of the stack increases at the end / beginning of the function for all variables.

+4
source share

Source: https://habr.com/ru/post/1693039/


All Articles