Question: The following C program int a /* insert your answer here */; int b /insert your answer here int all_the money (int x, volatile int

 The following C program int a /* insert your answer here
*/; int b /insert your answer here int all_the money (int x,
volatile int "buffer) printf ("You got all the money! "); exit): int

The following C program int a /* insert your answer here */; int b /insert your answer here int all_the money (int x, volatile int "buffer) printf ("You got all the money! "); exit): int get money(int x, volatile int buffer, int y) buffer[x] y; int main(int argc, char *"argv) int buffer[8]; int money get money (a, buffer, b); printf("you got XdIn", money); is compiled to the following: is compiled to the following: all the money: 6aa: 48 83 ec 08 6ae: 48 8d 3d df 00 00 00 6b5: e8 b6 fe ff ff 6ba: 48 83 c4 08 6be: c3 sub lea callq add retq $0x8,%rsp 0xdf(%rip),Xrdi 570 $0x8,%rsp # get stdin main: 6bf: 48 83 ec 28 6c3: 48 89 e6 6c6: 8b 15 4c 09 20 00 6cc: 8b 3d 4a 09 20 009 6d2: e8 22 00 00 00 6d7 89 c2 6d9 : 48 8d 35 cb 00 00 00 6e0: bf 01 00 00 00 6e5: b8 00 00 00 00 6ea: e8 91 fe ff ff 6ef: b8 00 00 00 0e 6f4: 48 83 c4 28 6f8: c3 sub mov mov mov callq mov lea mov mov callq mov add retq $0x28,%rsp %rsp,%rsi b,%edx a,%edi 6f9 %eax , %edx excb(Xrip) ,%rs $8x1, xedi $0x8,%eax # get stdin 580 $0x8,%eax $0x28,%rsp get money: 6f9: 48 63 ff 6fc: 48 8d 04 be 700: 89 10 702: c3 lea mov retq (%rsi,%rdi ,4),%rax %edx , (%rax) 6ea: 6ef: 6f4: 6f8: e8 91 fe ff ff b8 00 00 00 00 48 83 c4 28 c3 callq 580 mov $0x8,%eax add $0x28,rsp retq get money: 6f9: 48 63 ff 6fc: 48 8d 04 be 700: 89 10 702: c3 movs1q %edi,%rdi lea (%rsi,Srdi,4),Krax mov %edx,(%rax) retq A) In order to have this program call all the money, what should be the value of a? B) In order to have this program call all the_money, what should be the value of b

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!