Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Briefly explain the differences between the following pairs of con - cepts: ( i ) Compiler vs . Interpreter ( 2 ) ( ii )
Briefly explain the differences between the following pairs of con
cepts:
i Compiler vs Interpreter
ii Singlepass vs Multipass compiler
iii Local vs Global Code Optimisation
iv Stack vs Heap storage in memory organisation
b You are given a function myfunint a which takes one integer
parameter a A call x : myfun is made where x is stored
in register $s
i Describe how the above function call is made when arguments
are passed using stackbased parameter passing.
ii Describe how the above function call is made when arguments
are passed using registerbased parameter passing in the MIPS
architecture.
c You are performing register allocation on a program, and from live
ness analysis the following interference graph is created:
a b
c d
Assume we have free registers to use. Explain how to allocate
registers by graph colouring and use graph colouring to give a valid
allocation of a b c and d to registers $s $s and $s Explain what
will happen if you try graph colouring with only registers.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started