Question: Hand compile the following C Code into ARM, ARM operation available: NOP, ADD, SUB, AND, OR, EOR, LSL, LDURSW, STURW, B, BR, B.GT, with I
Hand compile the following C Code into ARM, ARM operation available: NOP, ADD, SUB, AND, OR, EOR, LSL, LDURSW, STURW, B, BR, B.GT, with I type operation as well. Provide explanation for each line of the code
int A = 7; int B = 5; int C = 2; int D = 4; int* dPtr = &D;
if(A-B) > 3 { C = 6; D = D << 2; } else { C = C << 5; *dPtr = 7; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
