Where is the location of the local variable address in the stm32 interrupt service function?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-12 07:04 AM
why is it equivalent to the use of global variables, the address will not change.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-12 07:51 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-12 11:50 AM
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.