Q4. Translate the following C code to RISC-v Assume that the variables f, g, h, i, and are assigned to registers x5, x6,
Posted: Fri Jul 01, 2022 5:33 am
Q4. Translate the following C code to RISC-v Assume that the variables f, g, h, i, and are assigned to registers x5, x6, x7, x28, and x29, respectively. Assume that the base address of the arrays A and B are in registers x10 and 11, respectively. Assume that the elements of the arrays A and B are 8-byte words: B[8] A[1] + A[j];