正在加载图片...
Problem 4.4(P270) int pushtesto int rval / Insert the following assembly code movl %esp, %eax #save stack pointer pushl%esp #push stack pointer popl %edx #pop it back subl edx. eax tto or 4 movl %oeax, rval set as return quay It implies that pus the original value of return rval %esp old value In our experiments, we find that the function pushtest return o W lat does this imply about the behavior of the instruction pushl %oesp under IA 32 2021/10/29Problem 4.4 (P270) int pushtest() { int rval; /* Insert the following assembly code: movl %esp, %eax #save stack pointer pushl %esp #push stack pointer popl %edx #pop it back subl %edx, %eax # 0 or 4 movl %eax, rval # set as return value */ … return rval; } In our experiments, we find that the function pushtest return 0. What does this imply about the behavior of the instruction pushl %esp under IA32? 2021/10/29 9 It implies that push the original value of %esp (old value)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有