Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Give me the process Question 1: Suppose p is a pointer to an array of 4-byte floats at memory address 0x8738. What is the address

Give me the process

Question 1:

Suppose p is a pointer to an array of 4-byte floats at memory address 0x8738. What is the address of p[4]?

Question 2:

long image text in transcribedA[M][N]; long image text in transcribedB[N][M]; long foo(long i, long j) { return image text in transcribedA[i][j]+B[j][i]; }

Fill in the values of M and N so that the c code produces this assembly code:

foo: leaq 0(,%rdi,8), %rdx subq %rdi, %rdx addq %rsi, %rdx leaq (%rsi,%rsi,8), %rax addq %rax, %rdi movq B(,%rdi,8), %rax addq A(,%rdx,8), %rax ret
Transcribed image text

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: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions