subject
Computers and Technology, 17.09.2019 20:20 sval

Consider program p, which runs on a 4 ghz machine m in 200 seconds. consider an optimization to p that replaces all instances of multiplying a value by 4 (mult x, x,4) with two instructions that set x to x x twice (add x, x; add x, x). assume that every multiply instruction takes 6 cycles to execute, and every add instruction takes just 1 cycle. after recompiling, the program now runs in 150 seconds on machine m. determine how many multiplies were replaced by this optimization.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
What is stored in str after the following code executes? string str = "computer science"; int i = 0; while (i < 8) { if (str.indexof("m") < i) { str = str.substring(0, 2) + str; } i += 2; } computer science cocomputer science cococomputer science cocococomputer science computer scienceco
Answers: 3
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
You know the right answer?
Consider program p, which runs on a 4 ghz machine m in 200 seconds. consider an optimization to p th...
Questions
question
Mathematics, 05.05.2020 18:17
question
History, 05.05.2020 18:17
question
Mathematics, 05.05.2020 18:17