Question: Problem 6. (4 points): Struct Access. Now for something totally different... Dr. Grave O'Danger is now science department and has decided to make it impossible
Problem 6. (4 points): Struct Access. Now for something totally different... Dr. Grave O'Danger is now science department and has decided to make it impossible for you to graduate. struct confuse head of the computer char systems; long theory: struct applications char web[3]: h database: int languages: struct confuse math; Below are three C functions and three x86-64 Linux code blocks. A mov 0x20 (Srdi),Brax mov 0x8 (rax), trax retq char .bachelors (struct confuse .ptr) return & (ptr->database.web12]) B lea 0x12 (srd), rax retq int masters (struct confuse ptr) return (ptr->languages) c 0x18 (trai), % rax long phd (struct confuse .ptr) return ptr->math-theory mov mov (8rax),Beax retq In the following table, next to the name of each x86-64 code block, write the name of the C function that it implements. Code Block Function Name Page 9 of 15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
