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 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 09:50
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the web pages for a particular vendor (say amazon). a. how can you use this data to determine which are the best ads? b. how can you use this data to determine which are the best ad formats? c. how could you records of past ads and ad clicks to determine which ads to send to a given ip address? d. how could you use this data to determine how well the technique you used in your answer to part c was working? e. how could you use this data to determine that a given ip address is used by more than one person? f. how does having this data give you a competitive advantage vis-à-vis other ad-serving companies?
Answers: 2
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
Health, 05.11.2020 21:40
question
Mathematics, 05.11.2020 21:40
Questions on the website: 13722363