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...
-
What systems does your organisation use to track project budgets, and whose responsibility is it to ensure that appropriate access is maintained to these systems?
-
Differentiate between the external and internal growth approaches for entrepreneurial firms.
-
Sam Farr is the president, founder, and majority owner of Galena Medical Corporation, an emerging medical technology products company. Galena is in dire need of additional capital to keep operating...
-
Provide a summary of Kamille McKinney's case. Include details on the crime. The individuals involved, including background information How this case came to its conclusion The outcome of the parties...
-
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 continuous function on a compact domain is uniformly continuous. In economic analysis, uniform continuity typically takes a slightly stronger form. A function f: X Y is Lipschitz (continuous) if...
-
What is meant by a consignment?
-
What is the distinction between a sale and an agreement to sell?
-
Is a contract for the installation of a central heating system a contract for the sale of goods?
-
P contracted with Q to move equipment from one of Qs buildings to another site. R, an employee of P, damaged some of the equipment. What facts must Q establish in order to hold P liable for Rs...
-
How are goods defined in the Sale of Goods Act? What types of personal property are not within the definition?
-
The injection molded caps of disposable ball point pens must met tight specifications to fit snugly on the pen. One specification that is tracked is the caps weight, which should be 0.2 g. A sample...
-
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...
-
Mr. Smith was selling T-shirts at $10 each with sales of $5,000. He decided to bring down the selling price to $8 per T-shirt and subsequently sold 1,000 pieces. How much are his new revenues?
-
McCullough Hospital uses a job-order costing system to assign costs to its patients. Its direct materials include a variety of items such as pharmaceutical drugs, heart valves, artificial hips, and...
-
Describe the biogenesis and dynamics of mitochondria, and discuss how mitochondrial dysfunction can lead to diseases such as mitochondrial myopathies and neurodegenerative disorders .
Study smarter with the SolutionInn App