Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the following code, A and B are constants defined with #define 1typedef struct [ 2 int x[A] [B]; / Unknown constants A and B*/

image text in transcribed

In the following code, A and B are constants defined with #define 1typedef struct [ 2 int x[A] [B]; / Unknown constants A and B*/ long y; 6 typedef struct f char array [B]; int t; short s LA]; long u; 10 11str2; 12 13 void setVal (stri *p, str2 *q) [ 14 15 16 17 long v1 = q->t; long v2 q-u ; GCC generates the following code for the body of setVal: void setVal (stri *p, str2 *g) p in %rdi, q in %rsi 1 setVal: movs1q addq 8(%rsi), %rax 32(%rsi), %rax %rax , 184 (%rdi) movq ret What are the values of A and B? (The solution is unique.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

9. Mohawk Industries Inc.

Answered: 1 week ago