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 portion of the register window for local variables, including

___ _________ ________ _________ ________ ______ _________ ____.
____ ________ ___ ____ ____.
_____ __________ ________ __________ _____ _______ ________ _____ ____ ____ _______.
_____ _____ _________ ________ ____ ________ ______ _______ ___ ________ ______ _______.
______ _________ ____ _____ _________ ___ ______ _____ ___ ____ _________ ___.
_______ ______ ___ _____ _________ _____ _________ ________.
_____ ______ ____ _________ _____ ________ _____.
___ ___ _________ ____ ______ _____ _______ ____.
____ ________ ___ ___ ______ ___ _______.
_______ __________ ________ ____ ________ __________ _____ _______ __________ ____ __________.
_____ ___ ________ _______ _______ ________ _____ ____ _______ ___ _____.
________ ______ _________ __________ _______.
_______ _____ ________ ______ ____ ______ ___ _______ __________ ______ ________ __________.
____ ____ __________ _____ _______ _______ _________ ______ ______.
_________ __________ __________ ________ _________ _________ _____ ________ ____ ________ _______.
__________ _______ ____ ____ ________ ______ ______ ___ ________ __________ _____.
_____ __________ ___ _________ ____ ____ _____ ________.
____ _____ ______ _________ ____ _______ _______ _______ ______.
_________ ____ _________ _________ ________ _________ __________ ________.
_____ _________ ___ ___ _______ ___ ___ _________ _______ _______ _____.
_______ ___ _________ _________ _________.
_______ ___ _____ _______ _______ ___ ________ ____ _________ ___ _______ ________.
________ ______ ____ _____ _______ __________ ___.
_________ ___ ________ ___ _________ __________ __________ __________.
___ ______ _____ _________ ____ __________ _____ ______.
____ ____ _________ _________ ____ ___ ____ _____.
_______ _________ ______ ___ __________ ___ ____.
_____ _______ ___ ______ ____ ________ ________ ______ _____.
_______ __________ _______ _______ ________ __________.
______ ________ ___ ___ _________ ________ ___ _________ _________ ___ ____ ________.
________ _________ ___ __________ _________ ______ ____ ________ ______ ___ __________ _______.
____ _________ ___ _________ ___ ______.
_____ _____ ____ ___ ____ ___ _____ ____ __________ ________ _______ ________.
____ ________ _____ __________ _______.
___ ________ ______ ________ ___ ___ ________.
__________ _______ ____ _______ _________ ____ _______ ________ _______ _________.
____ ________.
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
→