subject
Engineering, 03.03.2020 01:37 hailey200127

Consider the following matrix transpose routine:
typedef int array[4] [4];
void transpose2(array dst, array src)
{
int i, j;
for (i = 0; i < 4; i++);
for (j = 0; j < 4; j++);
dst [j] [i] = src[i][j];
}
}
}

Assume this code runs on a machine with the following properties:
(a) sizeof (int) = 4
(b) The src array starts at address 0 and the dst array starts at address 64 (decimal).
(c) There is a single LI data cache that is direct-mapped, write-through, write-allocate, with a block size of 16 bytes.
(d) The cache has a total size of 32 data bytes (i. e. not considering tags, etc.), and the cache is initially empty.
(e) Accesses to the src and dst arrays are the only sources of read and write misses, respectively.

For each row and col, indicate whether the access to src [row] [col] and dst [row] [col] is a hit (h) or a miss (m). For example, reading src [0] [0] is a miss and writing dst [0] [0] is also a miss.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 19:10
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
Answers: 1
question
Engineering, 04.07.2019 19:10
When subject to a steady load (within elastic range) over a long period of time, what is the major difference in material behavoir between steel and plastic?
Answers: 2
You know the right answer?
Consider the following matrix transpose routine:
typedef int array[4] [4];
void transp...
Questions
Questions on the website: 13722363