Question: Look at the assembly instructions below. These instructions will be pipelined to speed up the code execution. Unfortunately the code cannot be pipelined as is
Look at the assembly instructions below. These instructions will be pipelined to speed up the code execution. Unfortunately the code cannot be pipelined as is due to data dependencies. Add NOP instruction in the code below at the appropriate locations to ensure that pipelining can be accomplished. (blank means do not add a 'NOP', 1NOP means add one line of 'NOP', 2NOP means add two lines of 'NOP', 3NOP means add three lines of 'NOP')
mov $10, %eax add $2, %eax mov $4, %ebx mov $5, %ecx add $1, %ebx add $1, %ecx add %ecx, %eax add %ebx, %eax
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
