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...
-
Effectiveness of audit procedures would be reduced by a. Selecting larger sample sizes for audit. b. Performing audit procedures at the fiscal year- end date as opposed to the interim period. c....
-
Comparison of projects with unequal lives. The manager of the Robin Hood Company is considering two investment projects that are mutually exclusive. The after tax required rate of return of this...
-
Young Tree Construction Company uses the percentage-of-completion method of accounting. In 2014, Young Tree began work under a contract with a contract price of $1,500,000. Other details follow:...
-
Which of the following statements best describes the purpose of a resource calendar? A calendar that indicates the availability of natural resources for a project. A calendar that indicates the...
-
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...
-
If this loan had been made on a 10% add-on basis payable in 12 end-of-month installments, what would be the monthly payments? What is the annual percentage rate? The effective annual rate?...
-
A gift shop sells 400 boxes of scented candles a year. The ordering cost is \($60\) for scented candles, and holding cost is \($24\) per box per year. What is the economic order size for scented...
-
Kay Vickery is angry with Gene Libby. He is behind schedule developing supporting material for tomorrows capital budget committee meeting. When she approached him about his apparent lackadaisical...
-
Tharpe Painting Company is considering whether to purchase a new spray paint machine that costs \($3,000\) . The machine is expected to save labor, increasing net income by \($450\) per year. The...
-
Brice Looney owns a small retail ice cream parlor. He is considering expanding the business and has identified two attractive alternatives. One involves purchasing a machine that would enable Mr....
-
A positively charged particle initially at rest on the ground moves \(4.0 \mathrm{~m}\) upward in \(2.00 \mathrm{~s}\). If the particle has a chargeto-mass ratio of \(10 \mu \mathrm{C} / \mathrm{g}\)...
-
Elite Apparel Inc. is considering two investment projects. The estimated net cash flows from each project are as follows: Each project requires an investment of $900,000. A rate of 15% has been...
-
Under what conditions is the following SQL statement valid?
-
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...
-
Marc Corporation wants to purchase a new machine for $400,000. Management predicts that the machine can produce sales of $275,000 each year for 5 years. Expenses are expected to include direct...
-
Required information (The following information applies to the questions displayed below.) Ramirez Company installs a computerized manufacturing machine in its factory at the beginning of the year at...
-
Rick Hall owns a card shop, Halls Cards. The following cash information is available for the month of August Year 1: As of August 31, the bank statement shows a balance of $14,225. The August 31...
Study smarter with the SolutionInn App