Question: Shows a general comparison between arguments a and b, where data_t, the data type of the arguments, is defined (via typedef) to be one of

Shows a general comparison between arguments a and b, where data_t, the data type of the arguments, is defined (via typedef) to be one of the integer data types listed in Figure 3.1 and either signed or unsigned. The comparison COMP is defined via #define.
Suppose a is in some portion of %rdx while b is in some portion of %rsi. For each of the following instruction sequences, determine which data types data_t and which comparisons COMP could cause the compiler to generate this code.

Figure 3.1

The C code int comp (data_t a, data_t b) { return a COMP b; }
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
It is important to understand that assembly code does not keep track of the type of a prog... View full answer
Get step-by-step solutions from verified subject matter experts
