Question: 3 M decides to make Post - its by printing yellow squares on white piec es yeJlolV , As part of the printing process, they
M decides to make Postits by printing yellow squares on white piec
es
yeJlolV
As part of the printing process, they need to set the CMYK cyan magen
tafficiencr
black value for every point in the square. M hires you to determine.
th ee d
data
of the following algorithms on a machine with a byte directm
aPP
e
cache with byte blocks. You are given the following definitions:
struct
pointcolor
Homework
Probl em s
int
c;
int
m;
int
y;
int
k
;
struct
pointcolor
square
l
;
int
i
j;
Assume
the
following:
sizeofint
square
begins
at
memory
address
O
Toe
cache
is initially empty.
Toe only
memory
accesses
are to th
and j
are stored in
registers. e
entnes of
the array
square.
Variables i
Determine
the cache performance of the
f ll o owmg code:
AB
C
for
i
O; i
; i
for j
O; j
; j
squareij
c
O;
squareij
m O;
squareij
y
;
squareij
k
O;
What
is
the total number of
writes?
What
is
the total number of
writes that miss in the cache?
What
is
the
miss
rate?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
