Function funct2 has the following prototype: double funct2(double w, int x, float y, long z); Gcc generates
Question:
Function funct2 has the following prototype:
double funct2(double w, int x, float y, long z);
Gcc generates the following code for the function:
Transcribed Image Text:
1 23 4 5 6 7 8 9 double funct2(double w, int x, float y, long z) w in %xmm0, x in %edi, y in %xmmi, z in %rsi funct2: vcvtsi2ss vmulss %xmm1, %xmm2, %xmm1 %edi, %xmm2, %xmm2 vunpcklps vcvtps2pd vcvtsi2sdq %xmm1, %xmm1, %xmm1 %xmm1, %xmm2 %rsi, %xmm1, %xmm1 vdivsd %xmm1, %xmm0, %xmmo vsubsd %xmm0, %xmm2, %xmmo ret Write a C version of funct2.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (4 reviews)
This problem can readily be solved by stepping through the a...View the full answer
Answered By
Muhammad Umair
I have done job as Embedded System Engineer for just four months but after it i have decided to open my own lab and to work on projects that i can launch my own product in market. I work on different softwares like Proteus, Mikroc to program Embedded Systems. My basic work is on Embedded Systems. I have skills in Autocad, Proteus, C++, C programming and i love to share these skills to other to enhance my knowledge too.
3.50+
1+ Reviews
10+ Question Solved
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Question Posted:
Students also viewed these Computer science questions
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Can you help me change this in c++ update your payroll program to use a C++ class. Each employee class object should hold the master file information for one employee. You can assume that the company...
-
Need help with C programming. Write code to do allowing you to store these smaller floating point numbers in a 32-bit integer. INPUT: you will read in a program and call your functions to implement...
-
Alpha Mann Ltd makes and sells computer carry bags. Bill Blake, the company accountant, is responsible for preparing the company's annual budget. In compiling the budget data for next year, Blake has...
-
Weinberg Canning produces fillet, smoked salmon, and salmon remnants in a single process. The same amount of disposal cost is incurred whether a product is sold at split-off or after further...
-
The current asset section of the Moorcroft Outboard Motor Company?s balance sheet reported the following amounts: The average collection period for 2021 is 50 days. Required: Determine net sales for...
-
Photosynthesis, as it occurs in the leaves of a green plant, involves the transport of carbon dioxide \(\left(\mathrm{CO}_{2} ight)\) from the atmosphere to the chloroplasts of the leaves. The rate...
-
H.J. Heinz Company uses standards to control its materials costs. Assume that a batch of ketchup (6,000 pounds) has the following standards: The actual materials in a batch may vary from the standard...
-
4 The inventory records of Kuffel Company reflected the following information for the year ended December 31, 2022: 3.75 points Date 1/1 Transaction Number of Units Unit Cost Total Cost Beginning...
-
Show how the numbers declared at label .LC3 encode the number 32.0.
-
For the following C function, the types of the four arguments are defined by typedef: Determine the possible combinations of types of the four arguments (there may be more than one). double funct1...
-
A manufacturer began operations on April 1 and reports the information below. All jobs are sold for 20% above cost. 1. Compute the May 31 balance in (a) Work in Process Inventory and (b) Finished...
-
The sun is 30 above the horizon. It makes a 60 m -long shadow of a tall tree. Part A How high is the tree? Express your answer in meters. h = Submit Request Answer t 0 ? m
-
As measured in steel at room temperature, the speed of sound is approximately 5000 m/s. What is the wavelength of a sound wave of frequency 1.2 kHz in steel Explain.
-
A winter hiker's body generates heat at a rate up to a maximum value of 120 W. She is hiking on a brisk day in which the outdoor temperature is -10C, while wearing a jacket with goose-down...
-
If you try to measure the voltage of a battery with a voltmeter connected in series, as shown in the figure, you won't get a completely accurate measurement because of the internal resistance of the...
-
Please show cash flow diagram, equation, and steps: Joe Clark puts $ 1 , 0 0 0 at the end of each year into a new saving account. His bank pays 6 % interest per year and compounds quarterly. What is...
-
A machine that produces ball bearings is set so that the average diameter is .50 inch. A sample of 10 ball bearings was measured, with the results shown here. Assuming that the standard deviation is...
-
The maximum pressure that can be developed for a certain fluid power cylinder is 15.0 MPa. Compute the required diameter for the piston if the cylinder must exert a force of 30 kN.
-
Let T and U be (2,4) trees storing n and m entries, respectively, such that all the entries in T have keys less than the keys of all the entries in U. Describe an O(logn+logm)-time method for joining...
-
If the approach described in the previous problem were implemented as part of the TreeMap class, what additional modifications (if any) would be necessary to a subclass such as AVLTreeMap in order to...
-
If the approach described in the previous problem were implemented as part of the TreeMap class, what additionalmodifications (if any) would be necessary to a subclass such as AVLTreeMap in order to...
-
On January 1 of this year, Kona Corporation sold bonds with a face value of $1,410,000 and a coupon rate of 7 percent. The bonds mature in four years and pay Interest semiannually every June 30 and...
-
Selling and Administrative Expenses: $160,000 Great Grains' What is the Gross Profit for 2022 amounted? The following cost data pertains to Great Grains Inc. for December 31st, 2022: Ending Raw...
-
Sandhill Co. has a product with a unit selling price of $710, variable cost per unit $405, and fixed costs of $500.200. Compute the company's break-even sales units and sales dollars. Break-even...
Study smarter with the SolutionInn App