Computers and Technology, 25.06.2020 06:01 22katelynfrankouqqrb
Consider the functions below, with both C code and compiled assembly provided. Recall that gets(buf) simply copies input in to buf. The inintial values of rsp, rbp, and rip are provided. The initial value of rip tells you the first instruction which will start to execute: the push at the start of test\_func. You can assume that the leaveq instruction is equivalent to movq $rbp, $rsp followed by popq $rbp. Initial State 000000000040002e 40002e: push %rbp 40002f: mov %rsp , %rbp 4000 32 : sub $0x10,%rsp 400036: movl S0xaddedfee,-0x10 (%rbp) 40003d: movl S0xfadedace, -0xc(rbp) 400044 : mov! SOxcedeface ,-0x8 (%rbp) 40004b: movl SOxabaddeed,-0x4(%rbp) 400052: lea 4000 56: callq 400016«get-buffer> 40005b mov 4000 5e : mov $0x400794 ,%esi 40006d: callq 4004f0 400072: eavec 400073: retq %rip = 0X4000 2e %rbp 0xff0088 %rsp 0xff0068 void test_funcO int localArr[4] - {Oxaddedfee, 0x10 (%rbp) ,%rdi Oxfadedace, Oxcedeface, Oxabaddeed). -0x10 (%rbp), %eax get buffer); print f("%2\n", loca!Arr [0]); 0000000000400016 : 400016: push %rbp 4000 17: mov %rsp , %rbp 40001a: sub $0x08 ,%rsp 40001e: lea 400022:mov SOx0,%eax 400027: callq 4000e0 40002c: leaveq 40002d: retq void get bufferO char buf[8]; gets(buf) -0x08 (%rbp), %rdi void magic)i 0000000000400074 : printf("+1\n); 400074: 400075: 400078: 40007d: 400082: 400083: push mov mov callq pop retq %rbp %rsp , %rbp $0x400798 ,%edi 4004c0 %rbp
Answers: 2
Computers and Technology, 23.06.2019 11:00, shawn20034
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
Computers and Technology, 23.06.2019 22:00, rocksquad9125
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
Computers and Technology, 24.06.2019 09:10, daedae11142
to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
Consider the functions below, with both C code and compiled assembly provided. Recall that gets(buf)...
Mathematics, 23.08.2019 07:10
Mathematics, 23.08.2019 07:10
History, 23.08.2019 07:10
Mathematics, 23.08.2019 07:10
Computers and Technology, 23.08.2019 07:10
Health, 23.08.2019 07:10