SlideShare a Scribd company logo
1 of 1
Download to read offline
Suppose we have the following stack, where the red line is the indicator for sp: Suppose we now
want the stack to contain these additional data items in the following order: We are given the
following instructions: (a) addi sp, sp, -8 (b) addi sp, sp, 4 (c) add sp, sp, 8 (d) sw t2, O(sp) (e) sw
t2, 4(sp) (f) sw tO, O(sp) (g) sw to, 4(sp) (h) Iw t0, 4(sp) (i) I l2,O(sp) Which of the following
sequence of RISC-V instructions will generate the stack status we want? Assuming that all the
contents in the registers are words ( 4 bytes) and that the growth of the stack is downwards in
memory(as was discussed in lectures). (b) > (b) > (h) -> (i) (c) > (d) >(g)> (h) (b) > (a) > (g) > (d)
(b) > (a) > (e) -> (f) None of the options

More Related Content

More from actionindia2

Suppose XY have joint density function fXYxy53xy+y2.pdf
Suppose XY have joint density function fXYxy53xy+y2.pdfSuppose XY have joint density function fXYxy53xy+y2.pdf
Suppose XY have joint density function fXYxy53xy+y2.pdfactionindia2
 
Suppose XY have the joint probability density function gi.pdf
Suppose XY have the joint probability density function gi.pdfSuppose XY have the joint probability density function gi.pdf
Suppose XY have the joint probability density function gi.pdfactionindia2
 
Suppose you are elected to Federal Parliament of Australia a.pdf
Suppose you are elected to Federal Parliament of Australia a.pdfSuppose you are elected to Federal Parliament of Australia a.pdf
Suppose you are elected to Federal Parliament of Australia a.pdfactionindia2
 
Suppose X1Xn are iid random variables with mean EX an.pdf
Suppose X1Xn are iid random variables with mean EX an.pdfSuppose X1Xn are iid random variables with mean EX an.pdf
Suppose X1Xn are iid random variables with mean EX an.pdfactionindia2
 
Suppose there is a minieconomy with two people A and B A s.pdf
Suppose there is a minieconomy with two people A and B A s.pdfSuppose there is a minieconomy with two people A and B A s.pdf
Suppose there is a minieconomy with two people A and B A s.pdfactionindia2
 
Suppose we have a correctly working user program fragment L.pdf
Suppose we have a correctly working user program fragment L.pdfSuppose we have a correctly working user program fragment L.pdf
Suppose we have a correctly working user program fragment L.pdfactionindia2
 
Suppose we have a random sample of size n from a population .pdf
Suppose we have a random sample of size n from a population .pdfSuppose we have a random sample of size n from a population .pdf
Suppose we have a random sample of size n from a population .pdfactionindia2
 
Suppose the following data describe a nations population I.pdf
Suppose the following data describe a nations population I.pdfSuppose the following data describe a nations population I.pdf
Suppose the following data describe a nations population I.pdfactionindia2
 
Suppose the Queensland Government is considering establishin.pdf
Suppose the Queensland Government is considering establishin.pdfSuppose the Queensland Government is considering establishin.pdf
Suppose the Queensland Government is considering establishin.pdfactionindia2
 
Suppose three fair dice are rolled What is the probability .pdf
Suppose three fair dice are rolled What is the probability .pdfSuppose three fair dice are rolled What is the probability .pdf
Suppose three fair dice are rolled What is the probability .pdfactionindia2
 
Suppose the work on ObjectOriented Design starts with the .pdf
Suppose the work on ObjectOriented Design starts with the .pdfSuppose the work on ObjectOriented Design starts with the .pdf
Suppose the work on ObjectOriented Design starts with the .pdfactionindia2
 
suppose the prevalance P088 of type two diabetes follows .pdf
suppose the prevalance P088 of type two diabetes follows .pdfsuppose the prevalance P088 of type two diabetes follows .pdf
suppose the prevalance P088 of type two diabetes follows .pdfactionindia2
 
Suppose the true rate at which MSU students selfidentify as.pdf
Suppose the true rate at which MSU students selfidentify as.pdfSuppose the true rate at which MSU students selfidentify as.pdf
Suppose the true rate at which MSU students selfidentify as.pdfactionindia2
 
Suppose the final prediction error FPE estimate of MSFE is.pdf
Suppose the final prediction error FPE estimate of MSFE is.pdfSuppose the final prediction error FPE estimate of MSFE is.pdf
Suppose the final prediction error FPE estimate of MSFE is.pdfactionindia2
 
Suppose the state government decides to offer a 15 per unit.pdf
Suppose the state government decides to offer a 15 per unit.pdfSuppose the state government decides to offer a 15 per unit.pdf
Suppose the state government decides to offer a 15 per unit.pdfactionindia2
 

More from actionindia2 (15)

Suppose XY have joint density function fXYxy53xy+y2.pdf
Suppose XY have joint density function fXYxy53xy+y2.pdfSuppose XY have joint density function fXYxy53xy+y2.pdf
Suppose XY have joint density function fXYxy53xy+y2.pdf
 
Suppose XY have the joint probability density function gi.pdf
Suppose XY have the joint probability density function gi.pdfSuppose XY have the joint probability density function gi.pdf
Suppose XY have the joint probability density function gi.pdf
 
Suppose you are elected to Federal Parliament of Australia a.pdf
Suppose you are elected to Federal Parliament of Australia a.pdfSuppose you are elected to Federal Parliament of Australia a.pdf
Suppose you are elected to Federal Parliament of Australia a.pdf
 
Suppose X1Xn are iid random variables with mean EX an.pdf
Suppose X1Xn are iid random variables with mean EX an.pdfSuppose X1Xn are iid random variables with mean EX an.pdf
Suppose X1Xn are iid random variables with mean EX an.pdf
 
Suppose there is a minieconomy with two people A and B A s.pdf
Suppose there is a minieconomy with two people A and B A s.pdfSuppose there is a minieconomy with two people A and B A s.pdf
Suppose there is a minieconomy with two people A and B A s.pdf
 
Suppose we have a correctly working user program fragment L.pdf
Suppose we have a correctly working user program fragment L.pdfSuppose we have a correctly working user program fragment L.pdf
Suppose we have a correctly working user program fragment L.pdf
 
Suppose we have a random sample of size n from a population .pdf
Suppose we have a random sample of size n from a population .pdfSuppose we have a random sample of size n from a population .pdf
Suppose we have a random sample of size n from a population .pdf
 
Suppose the following data describe a nations population I.pdf
Suppose the following data describe a nations population I.pdfSuppose the following data describe a nations population I.pdf
Suppose the following data describe a nations population I.pdf
 
Suppose the Queensland Government is considering establishin.pdf
Suppose the Queensland Government is considering establishin.pdfSuppose the Queensland Government is considering establishin.pdf
Suppose the Queensland Government is considering establishin.pdf
 
Suppose three fair dice are rolled What is the probability .pdf
Suppose three fair dice are rolled What is the probability .pdfSuppose three fair dice are rolled What is the probability .pdf
Suppose three fair dice are rolled What is the probability .pdf
 
Suppose the work on ObjectOriented Design starts with the .pdf
Suppose the work on ObjectOriented Design starts with the .pdfSuppose the work on ObjectOriented Design starts with the .pdf
Suppose the work on ObjectOriented Design starts with the .pdf
 
suppose the prevalance P088 of type two diabetes follows .pdf
suppose the prevalance P088 of type two diabetes follows .pdfsuppose the prevalance P088 of type two diabetes follows .pdf
suppose the prevalance P088 of type two diabetes follows .pdf
 
Suppose the true rate at which MSU students selfidentify as.pdf
Suppose the true rate at which MSU students selfidentify as.pdfSuppose the true rate at which MSU students selfidentify as.pdf
Suppose the true rate at which MSU students selfidentify as.pdf
 
Suppose the final prediction error FPE estimate of MSFE is.pdf
Suppose the final prediction error FPE estimate of MSFE is.pdfSuppose the final prediction error FPE estimate of MSFE is.pdf
Suppose the final prediction error FPE estimate of MSFE is.pdf
 
Suppose the state government decides to offer a 15 per unit.pdf
Suppose the state government decides to offer a 15 per unit.pdfSuppose the state government decides to offer a 15 per unit.pdf
Suppose the state government decides to offer a 15 per unit.pdf
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Suppose we have the following stack where the red line is t.pdf

  • 1. Suppose we have the following stack, where the red line is the indicator for sp: Suppose we now want the stack to contain these additional data items in the following order: We are given the following instructions: (a) addi sp, sp, -8 (b) addi sp, sp, 4 (c) add sp, sp, 8 (d) sw t2, O(sp) (e) sw t2, 4(sp) (f) sw tO, O(sp) (g) sw to, 4(sp) (h) Iw t0, 4(sp) (i) I l2,O(sp) Which of the following sequence of RISC-V instructions will generate the stack status we want? Assuming that all the contents in the registers are words ( 4 bytes) and that the growth of the stack is downwards in memory(as was discussed in lectures). (b) > (b) > (h) -> (i) (c) > (d) >(g)> (h) (b) > (a) > (g) > (d) (b) > (a) > (e) -> (f) None of the options