Question: Consider the following C program fragment dealing with floating-point values: a[i] = p * q; c = a[j]; The compiler cannot establish that I

Consider the following C program fragment dealing with floating-point values:
a[i] = p * q;
c = a[j];
The compiler cannot establish that I ≠ j, but has reason to believe that it probably is.
a. Write an IA-64 program using an advanced load to implement this C program. The floating-point load and multiply instructions are ldf and fmpy, respectively.
b. Recode the program using predication instead of the advanced load.
c. What are the advantages and disadvantages of the two approaches compared with each other?

Step by Step Solution

3.48 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a fmpy t p q floatingpoint multiply ldfa c rj advanced floating point load load value stored in ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

896-C-S-S-A-D (2683).docx

120 KBs Word File

Students Have Also Explored These Related Systems Analysis And Design Questions!