Question: In the following code, M and N are constants defined with #define in the file defines. c that vou do not have: #include definesc typedef

In the following code, M and N are constants defined with #define in the file defines. c that vou do not have: #include "defines"c" typedef struct [ short cDM [N]; int d; ^ structypel; typedef struct 1 char e [N; int f; short g [N]; int h; ^ structype2; void setVal(structype1 *a, structype2 *b) [ int temp1 - b->f; int temp2 -b->h; a->d -temp1+temp2; The following assembly code is generated for the body of the setVal procedure: movl 36 (%rsi), %eax addl 12(%rsi), %eax movl %eax, 92 (%rdi) d of ensuring that any primitive Assume that the recommended Intel alignment rule is use What is . (a) the value of M? . (b) the value of N? . (c) the gap between c and d? . (d) the gap between e and f? . (e) the gap between f and g? . (f) the gap between g and h? object of K bytes has a memory addresses that is a multiple of K. In the following code, M and N are constants defined with #define in the file defines. c that vou do not have: #include "defines"c" typedef struct [ short cDM [N]; int d; ^ structypel; typedef struct 1 char e [N; int f; short g [N]; int h; ^ structype2; void setVal(structype1 *a, structype2 *b) [ int temp1 - b->f; int temp2 -b->h; a->d -temp1+temp2; The following assembly code is generated for the body of the setVal procedure: movl 36 (%rsi), %eax addl 12(%rsi), %eax movl %eax, 92 (%rdi) d of ensuring that any primitive Assume that the recommended Intel alignment rule is use What is . (a) the value of M? . (b) the value of N? . (c) the gap between c and d? . (d) the gap between e and f? . (e) the gap between f and g? . (f) the gap between g and h? object of K bytes has a memory addresses that is a multiple of K
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
