Local Variables and Parameters Here is the entire assembly code for the body of a function (but excluding the activation record set-up code and the return statement of the function) in a C program....


Local Variables and Parameters<br>Here is the entire assembly code for the body of a function (but excluding the activation record set-up code and the return statement of the<br>function) in a C program.<br>ADD R7, R4, 5<br>LDR R7, R7, He<br>STR R7, R5, ue<br>LDR R7, R5, He<br>STR R7, R5, H-1<br>ADD R7, R4, 14<br>LDR R7, R7, ne<br>STR R7, R5, ne<br>And here is the entire global data section of that program<br>GLOBAL_DATA_START<br>g .FILL 12<br>L1_activi .FILL 1c3_L1_activi<br>f .FILL 1c3_t<br>L5_activi .FILL lc3_L5_activi<br>L7_activi .FILL 13<br>L6_activi .FILL H6<br>L4_activi .FILL 184<br>L3_activi .FILL 1<br>L2_activi .FILL 45<br>.END<br>How many lines of C code does the body of this function have?<br>How many local variables does this function have?<br>What is the value in the first local variable just before the function returns?<br>If the function has two parameters, how many memory cells does the activation record for this function occupy?<br>

Extracted text: Local Variables and Parameters Here is the entire assembly code for the body of a function (but excluding the activation record set-up code and the return statement of the function) in a C program. ADD R7, R4, 5 LDR R7, R7, He STR R7, R5, ue LDR R7, R5, He STR R7, R5, H-1 ADD R7, R4, 14 LDR R7, R7, ne STR R7, R5, ne And here is the entire global data section of that program GLOBAL_DATA_START g .FILL 12 L1_activi .FILL 1c3_L1_activi f .FILL 1c3_t L5_activi .FILL lc3_L5_activi L7_activi .FILL 13 L6_activi .FILL H6 L4_activi .FILL 184 L3_activi .FILL 1 L2_activi .FILL 45 .END How many lines of C code does the body of this function have? How many local variables does this function have? What is the value in the first local variable just before the function returns? If the function has two parameters, how many memory cells does the activation record for this function occupy?

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here