当前位置:网站首页>stack stack

stack stack

2022-08-11 06:34:00 Emily_rong_2021

1. Data structure, FIFO

X86 processors generally use ESP (top of stack pointer) and EBP (bottom of stack pointer) to manage the stack,

ARM processors use the R13 register (SP) and R11 register (FP) to manage the stack.

2. Starting address, the ARM is fully decremented, the starting address is the highest address in user space, and the offset is randomly increased. The starting address is different each time to prevent attacks.

3. Default 8MB space,

Try not to allocate large arrays, function nesting, and recursive function layers should not be too deep.(Considering the FP, SP of each level function)

4. Local variables, actual parameters passed by the function, function context, allocated on the stack,

5. The stack frame, Frame Pointer, points to the bottom, SP points to the top

原网站

版权声明
本文为[Emily_rong_2021]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110515131620.html