For the following C code, the expressions val1val4 all map to the program values i, f, d,
Question:
For the following C code, the expressions val1–val4 all map to the program values i, f, d, and l:
Transcribed Image Text:
double fcvt2(int *ip, float *fp, double *dp, long 1) { } 1 2 3 4 5 6 7 8 9 10 11 12 int i = *ip; float f = *ip (int) *fp (float) *dp = (double) vali; val2; val3; return (double) val4; = = movl vcvtsi2ss vmovss %xmm1, Determine the mapping, based on the following x86-64 code for the function: double fcvt2(int *ip, float *fp, double *dp, long 1) ip in %rdi, fp in %rsi, dp in %rdx, 1 in /rcx Result returned in %xmm0 fcvt2: movl (%rdi), %eax vmovss (%rsi), %xmmo vcvttsd2si %r8d, (%rdi) *fp; double d vunpcklps vcvtps2pd ret (%rdx), %r8d %eax, %xmm1, %xmm1 (%rsi) vcvtsi2sdq vmovsd %xmm1, (%rdx) %rcx, %xmm1, %xmm1 = *dp; %xmmo, %xmmo, %zmmo %xmmo, %xmmo
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 80% (5 reviews)
This exercise requires that you step through the code paying careful att...View the full answer
Answered By
Carly Cimino
As a tutor, my focus is to help communicate and break down difficult concepts in a way that allows students greater accessibility and comprehension to their course material. I love helping others develop a sense of personal confidence and curiosity, and I'm looking forward to the chance to interact and work with you professionally and better your academic grades.
4.30+
12+ Reviews
21+ 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
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
Assignment 5: Hash Table implementation andconcordance There are three parts to this assignment. In the first two parts,you will complete the implementation of a hash map and aconcordance program. In...
-
(7b-4c-1)-2 (2b3c-2)5 Simplify.
-
In many regions, because of the development of the telecommunications industry and the costs of building the necessary infrastructure, regional telephone companies, known as incumbent local exchange...
-
Elam Enterprises is considering the following three actions regarding its equity: Action 1: Declaring a 30% stock dividend. Action 2: Declaring a $12,000 cash dividend. Action 3: Declaring a 2-for-1...
-
What are the main provisions of the Civil Service Reform Act?
-
Jones, wishing to retire from a business enterprise that he had been conducting for a number of years, sold all of the assets of the business to Jackson Corp. Included in the assets were a number of...
-
Which allowance method do you have to look to see if there is an existing balance in allowance for uncollectible accounts? A. Percentage of sales method and aging of receivable method B. Percentage...
-
The following C function converts an argument of type src_t to a return value of type dst_t, where these two types are defined using typedef: For execution on x86-64, assume that argument x is either...
-
Which of the following DNA strands is the template strand that led to the amino acid sequence shown above? (A) 3'-ATGCGACCAGCACGT-5' (B) 3'-AUGCCACUAGCACGU-5' (C) 3'-TACGGTGATCGTGCA-5' (D)...
-
When driven by a 120-Hz vibrator, a string has transverse waves of 31 cm wavelength traveling along it. (a) What is the speed of the waves on the string? (b) If the tension in the string is 1.20 N,...
-
What is the Manufacturing Cycle Efficiency? 11. Use High-Low to find the fixed and variable costs. Machine Month Costs Hours 12345678 $1,730,890 15,820 $1,753,860 13,980 $1,562,890 11,550 4...
-
Jimmy Padilla purchased a gravel pit in the current year for $944,232 and estimates that there will be a residual value in the land of $36,404 once resource extraction is complete. He estimates that...
-
Could I obtain assistance with these . problems? 1. Find the coordinates of the turning points of the curve y=3x^4-8x^3-30x^2+72x+5. Determine the nature of these points. "Determine the nature"...
-
1 . In 1 9 6 0 the homeownership rate in the United States was 6 2 % . Is there evidence to indicate that the homeownership rate is now higher? To answer the question, the researchers sample 5 0 2...
-
A certain disease is classified into 4 stages that distinguish how developed the disease is. Researchers studying a new potential treatment recruited over 100 patients with varying stages of the...
-
In contrast to deep-water waves, shallow ripples on the surface of a pond are due to surface tension. The surface tension ( of water characterizes the restoring force; the mass density ( of water...
-
The column shown in the figure is fixed at the base and free at the upper end. A compressive load P acts at the top of the column with an eccentricity e from the axis of the column. Beginning with...
-
We need to have a space-division switch with 1000 inputs and outputs. What is the total number of crosspoints in each of the following cases? a. Using a single crossbar. b. Using a multi-stage switch...
-
It is obvious that a router or a switch needs to search to find information in the corresponding table. The searching in a routing table for a datagram network is based on the destination address;...
-
List four major components of a packet switch and their functions.
-
Thornton Training Services (TST) provides instruction on the use of computer software for the employees of its corporate clients. It offers courses in the clients offices on the clients equipment....
-
Develop a top-level function list for an automated teller machine (ATM) system. Limit yourself to no more than 15 functions
-
9. The following selected data are from a recent statement of cash flows: Net cash flow from operating activities $35,000 Net cash flow used for investing activities (20,000) Net cash flow from...
Study smarter with the SolutionInn App