Question: Write corresponding ARM Assembly code for the following program. Also trace the contents of R0, R1, R2, R3, LR and PC as the program exectues.

Write corresponding ARM Assembly code for the following program. Also trace the contents of R0, R1, R2, R3, LR and PC as the program exectues. Assume addresses wherever needed.

int main () {

int a, b, c; a = 5; b = 6; c = sum (a, b);

} int sum (int x, int y) {

int result = x + y; return result;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!