请问C程序中的局部变量,传递参数等,是和中断的堆栈交叉连续放在同一个栈空间吗?中断重入时,中断内各函数的局部变量会发生覆盖吗?谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
或者说局部变量是在进入函数的时候,动态在stack分配的空间吗?
Jones-->是的。
然后每次运行时stack位置不同,分配的地址也不同?自动变量存在于堆栈?
Jones-->是的。