Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arri(M) (N); int arr2[N]

image text in transcribed

Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arri(M) (N); int arr2[N] [M]; void scale(int i, int j, int s) { arri[i][j] *=S; arr2[j][i] * S; The following is the translation of scale's function body to x86 instructions: leaq adda movi imull movl (%rdi,%rdi,8), %rax %rsi, %rax %edx, %ecx arr1(%rax,4), %ecx %ecx, arr1(%rax,4) (%rsi,%rsi,4), %rax %rax, %rdi arr2(%rdi,4), %edx %edx, arr2(%rdi,4) leag adda imull movl What are the values of Mand N? M = 5* 36i+4j N = 20j +4i *s Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arri(M) (N); int arr2[N] [M]; void scale(int i, int j, int s) { arri[i][j] *=S; arr2[j][i] * S; The following is the translation of scale's function body to x86 instructions: leaq adda movi imull movl (%rdi,%rdi,8), %rax %rsi, %rax %edx, %ecx arr1(%rax,4), %ecx %ecx, arr1(%rax,4) (%rsi,%rsi,4), %rax %rax, %rdi arr2(%rdi,4), %edx %edx, arr2(%rdi,4) leag adda imull movl What are the values of Mand N? M = 5* 36i+4j N = 20j +4i *s

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_2

Step: 3

blur-text-image_3

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

=+ (c) Find a bounded negligible set that is not trifling.

Answered: 1 week ago