cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the location of the local variable address in the stm32 interrupt service function?

Lming.10
Associate

why is it equivalent to the use of global variables, the address will not change.

2 REPLIES 2

Local/automatic variables typically use the stack or are held in registers.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal

local variable in general are either pure registers then vanish, or temporary put in the stack.

If it's a global, static or volatile variable, compiler will handle it differently.