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...
-
TRX Company has been forced into receivership, and you have been appointed trustee. You decide to open your own set of books in order to distinguish more clearly between trans actions occurring...
-
In the value chain concept, upgrading IT is considered what kind of activity? a. primary activity c. service activity b. support activity d. structured activity
-
Benito Mendez opened Mendez Appraisals. He rented office space and has a part-time secretary to answer the telephone and make appraisal appointments. His chart of accounts is as follows: Mendezs...
-
3. You earn 10 percent in 2020, 15 percent in 2021.. a) What is your arithmetic average return? b) What is your geometric average return? c) Your IRR if you invest $100 at the beginning of 2020, $200...
-
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 provision in a contract that requires the performance of a specifi c act before title passes. a. bill of sale b. certifi cate of title c. condition s ubsequent d. condition pr ecedent e. estoppel...
-
write an outdoor activity proposal about taking grade 10 students for a picnic. The proposal should include the following: 1. Description of trip or activities 2. Educational purpose ?? (In 2 answers
-
The table shows four reactions. Reactions Reaction Equation 1 C 3 H 8 + 5O 2 3CO 2 + 4H 2 O 2 C 2 H 4 + H 2 C 2 H 6 3 AgNO 3 + NaCl AgCl + NaNO 3 4 2Fe + O 2 2FeO...
-
Write a java source code that calculates the product of only odd numbers from 1 to N, where N is the input that has been taken from the User(using System.in). The value of N will be any positive...
-
Please number your responses with bullet points (e.g., (1) blablabla; (2) blablabla). Number 7 is a simple but popular game among friends. In this game, a group of people take turns to count natural...
-
Synergy Company began 2023 with 15,000 units of Product X in its inventory that cost $6.70 per unit, and it made successive purchases of the product as follows: Mar. May Aug. 7 22,000 units @ $ 8.20...
-
What is the difference between data mining and micromarketing?
-
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...
-
Below is a ( partial ) copy of New Jersey Tool's most recent income statement and balance sheet ( all numbers are in millions ) : Income Statement Current Year Sales = 2 , 2 3 8 COGS = 1 , 0 9 0 SG&A...
-
Radoski Corporation's bonds make an annual coupon interest payment of 7.35%. The bonds have a par value of $1,000, a current price of $1,130, and mature in 12 years making annual payments. What is...
-
Excel Online Structured Activity: Lease versus Buy Sadik Industries must install $1 million of new machinery in its Texas plant. It can obtain a bank loan for 100% of the required amount....
Study smarter with the SolutionInn App