x86 / compiler passes / stack allocation Compile the pseudo-x86 program below into x86, placing all variables on the stack. movq $1, x movq $4, tmp_1 addq $5, tmp_1 movq tmp_1, tmp_2 addq x, tmp_2...


x86 / compiler passes / stack allocation<br>Compile the pseudo-x86 program below into x86, placing all variables on the stack.<br>movq $1, x<br>movq $4, tmp_1<br>addq $5, tmp_1<br>movq tmp_1, tmp_2<br>addq x, tmp_2<br>movq tmp_2, %rdi<br>callq print_int<br>Part (a): for each variable in the program, assign the variable a home on the stack.<br>x :<br>tmp_1 :<br>tmp_2 :<br>Part (b): what is the size (in bytes) of the stack frame for this program?<br>Part (c): write down the complete x86<br>program<br>

Extracted text: x86 / compiler passes / stack allocation Compile the pseudo-x86 program below into x86, placing all variables on the stack. movq $1, x movq $4, tmp_1 addq $5, tmp_1 movq tmp_1, tmp_2 addq x, tmp_2 movq tmp_2, %rdi callq print_int Part (a): for each variable in the program, assign the variable a home on the stack. x : tmp_1 : tmp_2 : Part (b): what is the size (in bytes) of the stack frame for this program? Part (c): write down the complete x86 program

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here