Question: MULT ( Multiply ) and DIV ( divide ) are usually not an instruction for most RISC processors. The reason is that it takes significantly
MULT Multiply and DIV divide are usually not an instruction for most RISC processors. The reason is that it takes significantly longer time to perform MULT or DIV than, say, ADD.
The compiler finds tricks to avoid multiplication.
If you have numbers, and and you are trying to find the product of these numbers, what other command can be used instead?
The compiler could also choose to use ADD to implement MULT. For example, if you have numbers, and
a You can add seven times, or
b You can add forty eight times.
Which one is better? Answer a or
Why?
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
