Академический Документы
Профессиональный Документы
Культура Документы
Velayutham
SID -
010026328
2
3
b) For Stack Based
Push D
Push B
Add
Pop C
Push A
Push C
Sub
Pop B
Code Size = # instructions x size of each instruction
= 6 * ( 1 + 3 ) + 2 = 26 bytes.
Data Memory Traffic = # data addresses to memory * data address
size +
# data received from memory * data size.
= (6 * 4) + (6 * 4) = 48 bytes.
Instruction Traffic = # instruction address to memory * address size +
# instruction received from memory *
instruction size.
= (4 * 8) + [(6 * 4) +2] = 58 bytes.
c) For Memory Memory
ADD C, D, B
SUB B, A, C
Code Size = # instructions x size of each instruction
= 2 * (3 + 3 + 1) = 20 bytes.
Data Memory Traffic = # data addresses to memory * data address
size +
# data received from memory * data size.
= (6 * 4) + (6 * 4) = 48 bytes.
Instruction Traffic = # instruction address to memory * address size +
*****
Ajai Krishna Velayutham
010026328