GATE Exam  >  GATE Questions  >  For the given instructions, all type of data ... Start Learning for Free
For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.
STORE R1, 0[R2]
LOAD R5, 24[R8]
STORE R3, -8[R9]
Then which of the following is true?
  • a)
    RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)
  • b)
    WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)
  • c)
    WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)
  • d)
    RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)
Correct answer is option 'D'. Can you explain this answer?
Most Upvoted Answer
For the given instructions, all type of data dependencies(RAW, WAW, WA...
-8)
b)RAW exists if R2 == (R8 24) and WAW exists if R8 == (R9 -8)
c)RAW exists if R2 == (R8 24) and WAR exists if R8 == (R9 -8)
d)WAW exists if R2 == (R8 24) and WAR exists if R8 == (R9 -8)

The correct answer is d) WAW exists if R2 == (R8 24) and WAR exists if R8 == (R9 -8)

Explanation:
- RAW (Read After Write) dependency occurs when one instruction reads a value that was written by another instruction before it. In this case, there are no dependencies of this type.
- WAW (Write After Write) dependency occurs when two instructions write to the same location in memory. In this case, there is a potential WAW dependency between the first and third instructions since they both write to memory location 0[R2]. However, since the value of R2 is not specified, we cannot determine if this dependency actually exists.
- WAR (Write After Read) dependency occurs when one instruction writes to a location in memory that will be read by another instruction. In this case, there is a potential WAR dependency between the second and third instructions since the second instruction reads from memory location 24[R8] and the third instruction writes to memory location -8[R9]. However, since the values of R8 and R9 are not specified, we cannot determine if this dependency actually exists.
Free Test
Community Answer
For the given instructions, all type of data dependencies(RAW, WAW, WA...
From the given instructions clearly,
- RAW exists if (R2+0) == (R8+24)
– WAR exists if (R8+24) == (R9 – 8)
– WAW exists if (R2+0) == (R9 – 8)
Explore Courses for GATE exam
For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer?
Question Description
For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? for GATE 2025 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? covers all topics & solutions for GATE 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer?.
Solutions for For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer?, a detailed solution for For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? has been provided alongside types of For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice For the given instructions, all type of data dependencies(RAW, WAW, WAR) are present.STORE R1, 0[R2]LOAD R5, 24[R8]STORE R3, -8[R9]Then which of the following is true?a)RAW exists if R2 == (R8+24) and WAR exists if R8 == (R9 – 8)b)WAW exists if R2 == (R8+24) and WAR exists if (R2+0) == (R9 – 8)c)WAW exists if (R8+24) == (R9 – 8) and WAR exists if (R2+0) == (R9 – 8)d)RAW exists if (R2+0) == (R8 + 24) WAW exists if (R2+0) == (R9 – 8)Correct answer is option 'D'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev