Suppose a program runs on a machine with multiply operations responsible for 60% of execution time, divide operations responsible for 20% of execution time, and other operations responsible for 20% of execution time. a. How much do we have to improve the speed of multiplication if we want the program to run two times faster? b. What is the speedup of the machine if the division operations improved by 4?
Q: If infinite resources can theoretically run a program 8 times faster than a single processor, how…
A: SPEC - Standard Performance Evaluation Corporation base class execution time…
Q: Suppose that the execution time of a given program on a single processor is 9.5 ms. If you run this…
A: Answer is given below-
Q: Q2- The sum of a 100 * 100 matrix (total 10000 number) of floating point numbers is calculated usin…
A: Ans - here we have a matrix of 100x100 means 10000 number in a matrix so sum of all the number is…
Q: MICROPROCESSOR EMULATOR CODES Solve all the given task through using assembly language code for…
A: mov ax,10 mov bx,20 add ax,bx sub bx,ax sub ax,bx Code to swap two numbers without using third…
Q: If infinite resources can theoretically run a program 8 times faster than a single processor, how…
A: This can be defined on the basis of speed up of processors. Parallel speedup of processors is…
Q: What is the minimum number of cycles needed to completely execute n instructions on a CPU with a k…
A: We need to find a formula to find the minimum number of cycles needed to completely execute n…
Q: Write a assembly language program in which print a to z using array and loop in single line Write a…
A: 1. data segment data endscode segmentassume cs:code, ds:databegin: mov ax,data mov ds,ax mov…
Q: 2. Computer A has an overall CPI of 2.5 and can be run at a clock rate of 900 MHz. Computer B has a…
A: Note : Answering the question 2 as per the instruction given in question. Given Data : Computer A :…
Q: Write an essay in which you compare and contrast CPU Scheduling Algorith
A: Introduction: For comparing CPU scheduling techniques, a number of criteria have been proposed. Any…
Q: How long is the delay generated by the following code(in seconds)? Assume that the Dealy subroutine…
A:
Q: Can you help me with these Java questions
A: Answer 1: the main difference between while and do while loop is that do while loop will execute at…
Q: If many instructions were carried out at the same time on a computer, it would be a waste of the…
A: Answer: This article addresses write-blocking, a frequent programming issue. If a computer's central…
Q: Suppose that a computer program takes 100 seconds of execution time on a computer with…
A: Given that, The total time taken by the computer program for it's execution= 100 seconds Time taken…
Q: n-th Fibonacci number Fn is defined recursively as Fn=Fn−1+Fn−2 where F0=0 and F1=1 . For instance,…
A: AREA RESET, CODE, READONLY ENTRY start MOV R1, #15 ; n = 15 MOV R3,…
Q: _The Principle of Equivalence of Hardware and Software says that hardware and software are basically…
A: No, the above statement is false.
Q: Show the program execution for the following program. The hypothetical machine has four (4) opcodes:…
A:
Q: Suppose that you wish to run a program P with 9x 10^9 instructions on a 5.5 GHz machine with a CPI…
A: Given values are: Number of instructions (I) = 9 x 109 instructions Average clock cycle per…
Q: Consider having a program that runs in 50 s on computer A, which has a 500 MHz clock. We would like…
A: 3125 MHz
Q: Suppose a program takes 1 million instruction on a processor having frequency 2 MHz. 50 % of…
A: Lets see the solution.
Q: Problem 4. Suppose a program for a racing drone consists of a purely sequential part which takes 25…
A: Loop takes 100 cycles Iterated loop takes 100 times
Q: Consider a computer that has a byte-addressable memory organized in 32-bit words according to the…
A: A byte-addressable memory uses a 1-byte memory cell to represent an address. A computer can store…
Q: memory-mapped I/O and polling, write a program that reads characters directly from the keyboard. To…
A: It is defined as Martian language is the spoken and written language of Barsoom, used and understood…
Q: Write an assembly language program for MC68000 mieroprocessor that will compute the following…
A: Solution:-- 1)The given question has required for the solution to be provided with the help of the…
Q: write a emu 8086 assembly language program to check if values of a variable of bytes are positive…
A: GIVEN : write a emu 8086 assembly language program to check if values of a variable of bytes are…
Q: Define pipelining in terms of increasing the speed of a processor, and then determine how many…
A: Analysis of the issue: Data Provided: 5 instructions total. 1 cycles per stage, overall. To locate…
Q: Problem - Write an Assembly Language Program to find sum of odd numbers in a given series containing…
A: Let us consider the below example containing 8 bit numbers in a continuous memory location and store…
Q: 3. Implement a 32-bit subtraction of two numbers X and Y that are stored in memory as: X = (DS:…
A: Hi there, Please find your code below, I tried as fast as i can to answer the question, I hope you…
Q: Suppose a program runs in on a computer with multiply operations responsible for 90% of the…
A: Let us suppose that the total execution time of the program is 100 seconds. So, according to the…
Q: Write an assembly language program for 8085 microprocessor to calculate the sum of series of odd…
A: An assembly language program for 8085 microprocessor to calculate the sum of series of odd numbers
Q: Question 1: Consider following scenario for a program running on two computers A and B. Computer A…
A: Answer to the above question is in step2.
Q: You ran a benchmark program on a machine with a 200 MHz clock. For unoptimized code it executes…
A:
Q: You ran a benchmark program on a machine with a 200 MHz clock. For unoptimized code it executes…
A: CPI stands for cycles per instruction the lower the CPI the better the performace. Here in the above…
Q: Design your own computer Architecture for the specific required task assumed by…
A: - We have to design our own computer architecture for multiplying two numbers.
Q: matrix addition is pretty simple; see the program below. However, the given addition function…
A: It is defined as Central Processing Unit. The CPU is the primary component of a computer that…
Q: Machine A runs a program in 100 seconds, Machine B runs the same program in 125 seconds. Find the…
A: Refer to step 2 for the answer.
Q: Suppose you want to improve the performance of the processor in the previous program by 15%, which…
A: New execution time = 15% less than previous execution time = 0.85 * previous execution time =…
Q: 1. Illustrate the program execution for the following program. The hypothetical machine has four (4)…
A: Program description Load Ac from memory location CM7 The content of this location is 0005H Logically…
Q: A PDA has "XY" MB of memory, Where XY are the last two numbers of your student number (e.g for…
A: The address space in the memory is 32 MB or 2255 MB (25 x 220). This means that to address every…
Q: How to measure a computer performance ? 2. Suppose we have a program runs in 100 seconds on a…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Given an instruction sequence with instructions in classes A, B, and C as the table below:…
A: Give an instruction sequence with instructions in classes A, B, and C as the table below.…
Q: hicroprocessor CPUS do not understand mnemonics as they are, they have to be converted to binary
A: Because microprocessor CPUs do not understand mnemonics as they are, they have to be converted to…
Q: A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P can fail…
A: Given A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P…
Q: You ran a benchmark program on a machine with a 100 MHz clock. For unoptimized code it executes…
A:
Q: Suppose you want to achieve a speed-up of 90 times faster with 100processors. What percentage of the…
A: Parallel processing is a method in CPU in which two tasks are executed simultaneously at same…
Q: Required reference strings needed for the Execution is given below 1000 AA 1002 AC 1004 DA 1006 CC…
A: Here we explain : ============================================================================ The…
Q: an assembly language program that reads a specified number of positive integer inputs from standard…
A: It is defined as a low-level programming language for a computer or other programmable device…
Q: Please write a MIPS program to prompt the user to input three positive integers and then print out…
A: Here is the solution:-
Q: Assume that we are going to compute C on both a single core shared memory machine and a 4-core…
A: The calculation of the every element in the given matrix are always independent in the calculation…
Q: Implement the following pseudocode in assembly language. Use short-circuit evaluationand assume that…
A: INCLUDE Irvine32.inc. data N DWORD 10A DWORD 9B DWORD 8 .code main proc mov eax, N mov ebx, A mov…
fast
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write the mnemonics of the following program: The pressure of two boilers is monitored and controlled by a microcomputer works based on microprocessor programming. A set of 6 readings of first boiler, recorded by six pressure sensors, which are stored in the memory location starting from 2050H. A corresponding set of 6 reading from the second boiler is stored at the memory location starting from 2060H. Each reading from the first set is expected to be higher than the corresponding position in the second set of readings. Write an 8085 sequence to check whether the first set of reading is higher than the second one or not. If all the readings of first set is higher than the second set, store 00 in the ‘D’ register. If any one of the readings is lower than the corresponding reading of second set, stop the process and store FF in the register ‘D’. Data (H): First set: 78, 89, 6A, 80, 90, 85 Second Set:71, 78, 65, 89, 56, 75Answer the given question with a proper explanation and step-by-step solution. Write an MIPS program that computes terms of the Fibonacci series, defined as: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 ... (This is sometimes started with a 0th term: 0, 1, 1, 2, etc.)The first two terms in the series are fixed, and each subsequent term in the series is the sum of the preceding two terms. So, for example, the term 13 is the sum of the terms 5 and 8.Write the program as a counting loop that terminates when the 100th term of the series has been computed. Use a register for the current term and a register for the previous term. Each execution of the loop computes a new current term and then copies the old current term to the previous term register. Count the number of passes to stop after the 100th term. Do not worry about overflow: this will FAR exceed the capacity of a register to hold the value. Stop the program with a syscall with 10 in $v0.Write the robot program using the VAL+ for the following automation case. First draw the problem; then handwrite the VAL+ code. The robot picks up FIVE blocks of size 100x100x100 mm that are stacked at a fixed position and place them at the corners and center of a square table of size 500 x 500 mm. Select the original position on the table on your own.
- When you speak about execution flow, could you maybe explain precisely what you mean by that?1) Implement a subprogram which takes 4 numbers in the argument registers $a0...$a3, andreturns the largest value and the average in $v0 and $v1 to the calling program. Theprogram must be structured as follows:Subprogram largestAndAverage($a1, $a2, $a3, $a4){ int var0 = $a0, var1 = $a1, var2 = $a2, var3 = $a3; $s0 = getLarger($a1, $a2); $s0 = getLarger($s0, $a3); $v0 = getLarager(s0, $a4); // Largest is in $v0 $v1 = (var0 + var1 + var2 + var3)/ 4; // Aversge is in $v1 return;}Subprogram getLarger($a0, $a1) { $v0 = $a0 if ($a1 > $a0) $v0 = $a1 return;}Note the use of the variables var0...var3. Because the values of $a0 and $a1 (at least) arechanged on the call to getLarger, they will not be available when they are needed to calculatethe average, and must be stored on the stack. To do this problem correctly, you mustcalculate the maximum value using the getLarger subprogram shown here, and it must becalled before the average is calculated. This implies that at a minimum $a0 and $a1…2. A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P can fail a. 50% b. 60% c. 10% d. 70%
- Could you explain on what you mean by "execution flow"?create a 2 tape Turing machine (use JFLAP) that has on tape 1 the alphabet of a,b,null, on tape 2 the alphabet is 0,1,2,3, null. Tape 1 has initial content of (a+b)*, Tape 2 has initial content of (0+1)* Begin by processing tape 1, if the substring aa is found on tape 1, search tape 2 for the first 00 substring and replace it with 22 if the substring bb is found on tape 1, search tape 2 for the first 11 substring and replace it with 33. If at anytime aa does not have a matching 00 reject if at anytime bb does not have a matching 11 reject else accept after all of tape 1 has been processed.The task should be presented in Latex, showing the codes used and the results of executing said codes. Realize a function called power where the inputs are a complex number z, a complex number c and a value α ∈ R and the output is the value of zc for the branch where |z| > 0 and α< arg(z)
- Define execution time.for C++ write a progam for the greatest common divisor of integers x and y is the largest integer that evenly divides both x and y. Write a recursive function gcd that returns the greatest common divisor of x and y. The gcd of x and y is defined recursively as follows. If y is 0 the answer is x; otherwise gcd(x, y) is gcd(y, x%y).Write the Fibonacci Function program with: Recursive and Iterative method respectively using the following condition: Fib (1) is 1 Fib (2) is 1 Fib (N) is Fib (N-2) + Fib (N-1), for N > 2 Show the Hand Simulations of activation records for both the programs and display the output