تم الحل ✓
categoryهندسة حاسوب وشبكات
schoolبكالوريوس
event_available2026-07-14
السؤال
Transcribed Image Text:
7. A compiler designer is trying to decide between two code sequences for a
particular machine. Based on the hardware implementation, there are
three different classes of instructions: class A, class B, and class C, and
they require two, three, and one cycles per instruction, respectively.
The first sequence has 7 instructions: 3 of A, 2 of B, and 2 of C
The second sequence has 9 instructions: 2 of A, 1 of B, and 6 of C
(a) Compute the CPU cycles for each sequence. Which sequence is
faster?
(b) What is the CPI for each sequence?
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.