Consider the following code: f: mova ret main: pushq rbx movg $0, rbx call f popq rbx // LINE 10 %rax What should go in the blank if we wish to ensure that %rax and %rbx end up with the same value on LINE 10? Hint: think about how the stack works. O A. 8(%rsp) O B. -8(%rsp) C. 16(%rsp) O D. -16(%rsp) O E. (%rsp)

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter6: Creating, Sorting, And Querying A Table
Section: Chapter Questions
Problem 10EYK
icon
Related questions
Question
Consider the following code:
f:
movq
ret
main:
popq %rbx
// LINE 10
I
pushq %rbx
movq $0, %rbx
call f
%rax
A. 8(%rsp)
B. -8(%rsp)
C. 16(%rsp)
D. -16(%rsp)
E. (%rsp)
What should go in the blank if we wish to ensure that %rax and %rbx end up with the same value on LINE 10? Hint: think about how the stack works.
Transcribed Image Text:Consider the following code: f: movq ret main: popq %rbx // LINE 10 I pushq %rbx movq $0, %rbx call f %rax A. 8(%rsp) B. -8(%rsp) C. 16(%rsp) D. -16(%rsp) E. (%rsp) What should go in the blank if we wish to ensure that %rax and %rbx end up with the same value on LINE 10? Hint: think about how the stack works.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Stack
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L