Question

An overlapped register window in a RISC machine has 64 registers. Assume that this machine is to support an environment having about 16 global variables, about 8 local variables (including parameter that are being passed in and out. You may assume that a maximum of 2 input and 2 output parameters will be required.). How will you allocate these registers for global variables, input arguments, local variables and output parameters? What are the maximum nesting of function call that can be supported by the organisation proposed by you? Give justification of your design.

30 Nov 2017
Answer :
Word Count : 433

Allocating registers efficiently in a RISC machine's overlapped register window is crucial for optimal performance. Let's design the register allocation for global variables, input arguments, local variables, and output parameters based on the provided constraints.

**Register Allocation Design:**
1. **Global Variables (16 registers):** Assign registers from the available register window for global variables. These are variables used across multiple functions.

2. **Input Arguments (2 registers for each function call):** Since a maximum of 2 input arguments can be passed in, allocate 2 registers for each function call. These registers are used for passing values to functions.

3. **Local Variables (6 registers):** Allocate a

______ __________ _______ ____ ____ _____ ______ ___ ____ ________ _______.
_________ ___ _____ ____ _________ __________ ______ _________ ____ ______ _______.
______ _____ __________ _________ ________ ______ _________ _________.
_____ ___ ____ _____ ________ ___ ___ ________.
________ ________ ____ ___ __________.
____ ________ _________ _________ __________ _____ ________ ______ _____ _____ ______.
__________ __________ ___ ____ _______ ___ ____ __________ __________.
_______ ________ _____ ___ _____ ____ __________ __________ ______ ____.
___ ___ ___ ______ ____ ______ _________ _________ _____.
________ __________ ___ _____ ______ ____ ______ ______ ___ ____ _______ ____.
_________ __________ _____ _____ ___ __________ _________ ___ ________ _______ ________.
_________ ______ __________ _________ _______ _______ _________ ________ _____ __________ ______ __________.
_____ _________ __________ _________ ______ ______ ___ ________ ______ _______ _______ ________.
_________ ______ ______ ___ _____.
_______ _______ ________ ______ _____ ______ __________ ________ ___ __________ _____.
_______ _______ _______ _______ ______ _____ _________ __________.
___ _________ ____ ___ ________ _____ __________ ____.
_______ ________ ___ ____ _________ ________ ____ ________.
___ __________ ______ ________ ______ ________ _______ ________ __________ _____ _________ __________.
___ _______ ______ ___ ____ _______ _________.
__________ ______ _________ ________ _____ ______ _____ _______ _________ _________ ____.
________ _______ ____ _______ _____.
_______ _______ _______ ______ _______ ________ ___ __________ _________ ____.
____ ___ _______ ______ ________ _____ _____.
____ _____ ____ _______ ___ ________ ___ _________ ________ ___ ____ __________.
_________ ________ ____ _________ ____ ________ ______ _____.
________ _____ __________ ______ _________ __________ ________.
____ __________ ___ _________ ___ ________ ______ _______ ________ ____ __________.
_______ _______ ___ ___ ________ ______ _____ ________ _____ _______ _________.
______ _______ ______ ____ _______ __________ __________ ____ ____.
____ _________ ___ _________ _______ __________ ________ _______ _____ __________ _____.
_________ ____ ___ ______ _____ ______ ____ __________ ________ ________ _____.
_______ ____ _____ ___ __________ ____ ________ _________.
____ ________ __________ ______ ________ ________.
_____ _______ _____ ______ ________.
_____ _____ ___ __________ ___ ________ ___ _____ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 12 2010 - An overlapped register window in a RISC machine has 64 registers. Assu | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→