Question: [ sp , #B ] / / place the return address # 0 ] / / place the frame pointer on the stack 2 /
sp #B place the return address
#place the frame pointer on the stack
put arg in the appropriate regi
procedureB
procedureB call procedureB
load var with the value returned by proced
Question
Fill in the blarks as appropriate with a register eg or or a mnemonic ica
b or a number eg #
long long int procedureAliong long int arg long long int arg long long int arg
I long long int vart:
vart precedureBarg;
var var argargarg;
return var;
J
We will convert this code to ARM. Assume var is in
Wirst we will prepare a stack frame for procedureA before the call to procedureB
#place arg arg arg return address, frame pointer on stack
sub sp sp
make room on the stack, how many bytes?
stur
spplace arg on the stack, what register?
stur
I spplace arg on the stack, what register?
stur
sp # ipplace arg on the stack, what register?
stur
sp #B place the return address on the stack, wha
registerh, #place the frame pointer on the stack
mov
Received out of Id like to know the correct answers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
