Question: ARM LEGv8 assembly code For the following C statement, write the corresponding LEGv8 assembly code. a. Assume that the variables i is assigned to register
ARM LEGv8 assembly code
For the following C statement, write the corresponding LEGv8 assembly code.
a. Assume that the variables i is assigned to register X3 respectively. Assume that the base address of the arrays A, B and C are assigned to registers X0 .. X2 respectively. Assume that the elements of both arrays are 8-byte words.
C[i] = A[i] + B[i]
b. Assume that the variables f, g, and h, have already been placed in registers X0 .. X2 respectively. Assume that the elements of both arrays are 8-byte words. Use a minimal number of LEGv8 assembly instructions.
f = (g 3) (h + 5);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
