Offset annotation for declaration

In guide, it is stated Associate every declaration in a function with a unique offset on the stack, why it is restricted to declaration in functions, what about global variable for example?

1 Like

Global variables do not live on the stack. Instead, they are compiled like in the example code from the project description, and their address is thus computed with la.

3 Likes